Maven Ant Tasks
  1. Maven Ant Tasks
  2. MANTTASKS-123

Add option to generate pom upon deployment.

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The current ant install and deploy tasks require an existing pom file. There should be a way to specify a groupId, artifactId, and version and have the ant taks automatically generate a simple pom. This should work like the deploy:deploy-file goal.

        Issue Links

          Activity

          Hide
          Aziz Joumady added a comment -

          Hi,

          Why don't you use/create an archetype to generate, first, your project architecture (pom.xml, src/main/java, etc.)
          http://maven.apache.org/plugins/maven-archetype-plugin/

          Kind regards,

          Aziz

          Show
          Aziz Joumady added a comment - Hi, Why don't you use/create an archetype to generate, first, your project architecture (pom.xml, src/main/java, etc.) http://maven.apache.org/plugins/maven-archetype-plugin/ Kind regards, Aziz
          Hide
          Paul Gier added a comment -

          The project is not using Maven for the build. The point of the maven ant tasks is to allow an Ant build to access some of the features of Maven including deploying to a repository. Since the build is using Ant, there are several jars that do not have POM files. It would be good if there was an easy way to generate the POM file at some point before or during deployment.

          Show
          Paul Gier added a comment - The project is not using Maven for the build. The point of the maven ant tasks is to allow an Ant build to access some of the features of Maven including deploying to a repository. Since the build is using Ant, there are several jars that do not have POM files. It would be good if there was an easy way to generate the POM file at some point before or during deployment.
          Hide
          Aziz Joumady added a comment -

          Hi Paul,

          The Install plugin enable to generate a pom file.
          Since an installation is a step before the deployment, if you explicitly install and then deploy your jars, does it resolve your problem ?

          mvn install:install-file  -Dfile=path-to-your-artifact-jar \
                                    -DgroupId=your.groupId \
                                    -DartifactId=your-artifactId \
                                    -Dversion=version \
                                    -Dpackaging=jar \
                                    -DgeneratePom=true
          

          http://maven.apache.org/plugins/maven-install-plugin/examples/generic-pom-generation.html

          Regards,

          Aziz

          Show
          Aziz Joumady added a comment - Hi Paul, The Install plugin enable to generate a pom file. Since an installation is a step before the deployment, if you explicitly install and then deploy your jars, does it resolve your problem ? mvn install:install-file -Dfile=path-to-your-artifact-jar \ -DgroupId=your.groupId \ -DartifactId=your-artifactId \ -Dversion=version \ -Dpackaging=jar \ -DgeneratePom= true http://maven.apache.org/plugins/maven-install-plugin/examples/generic-pom-generation.html Regards, Aziz
          Hide
          Paul Gier added a comment -

          Aziz, any solution that requires "mvn" is not in applicable to the maven ant tasks. This is for an Ant build, so it is not safe to assume that Maven is even installed on the system. The goal is to generate a pom using only Ant and the jar that contains the maven ant tasks.

          Show
          Paul Gier added a comment - Aziz, any solution that requires "mvn" is not in applicable to the maven ant tasks. This is for an Ant build, so it is not safe to assume that Maven is even installed on the system. The goal is to generate a pom using only Ant and the jar that contains the maven ant tasks.
          Hide
          Paul Gier added a comment -

          This is better handled by the new writePom task in MANTTASKS-168.

          Show
          Paul Gier added a comment - This is better handled by the new writePom task in MANTTASKS-168 .

            People

            • Assignee:
              Unassigned
              Reporter:
              Paul Gier
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: