Uploaded image for project: 'Maven Ant Tasks (RETIRED)'
  1. Maven Ant Tasks (RETIRED)
  2. MANTTASKS-45

Document pomRefId attribute for M2 ant tasks on M2 website.

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.4
    • 2.0.6
    • None
    • None
    • Not of importance.

    Description

      Consider the following ANT script:

      <project name="test" default="test"
      xmlns:m="antlib:org.apache.maven.artifact.ant">

      <target name="test">
      <m:pom id="POM" file="pom.xml"/>
      <m:dependencies>
      <pom refId="POM"/>
      </m:dependencies>
      <m:install file="...">
      <pom refId="POM"/>
      </m:install>
      <m:deploy file="...">
      <pom refId="POM"/>
      </m:deploy>
      </target>

      </project>

      The following *undocumented* shorthand notation is available:

      <project name="test" default="test"
      xmlns:m="antlib:org.apache.maven.artifact.ant">

      <target name="test">
      <m:pom id="POM" file="pom.xml"/>
      <m:dependencies pomRefid="POM"/>
      <m:install file="..." pomRefId="POM"/>
      <m:deploy file="..." pomRefId="POM"/>
      </target>

      </project>

      The shorter, the better .

      Attachments

        1. patch.txt
          5 kB
          Antoine Levy-Lambert

        Activity

          People

            siveton Siveton Vincent
            dtoch Davy Toch
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: