Maven 2.x Ant Tasks

Document pomRefId attribute for M2 ant tasks on M2 website.

Details

  • Type: Wish Wish
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0.4
  • Fix Version/s: 2.0.6
  • Component/s: None
  • Labels:
    None
  • Environment:
    Not of importance.
  • Number of attachments :
    1

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 .

Activity

Hide
Antoine Levy-Lambert added a comment -

Hi,

if one of the maven developers would write down in this bug report where is the source for http://maven.apache.org/ant-tasks.html in Subversion, it should be possible to fix that.

Regards,

Antoine

Show
Antoine Levy-Lambert added a comment - Hi, if one of the maven developers would write down in this bug report where is the source for http://maven.apache.org/ant-tasks.html in Subversion, it should be possible to fix that. Regards, Antoine
Hide
Dennis Lundberg added a comment -
Show
Dennis Lundberg added a comment - The source for that document is here: http://svn.apache.org/repos/asf/maven/site/trunk/src/site/apt/ant-tasks.apt
Hide
Antoine Levy-Lambert added a comment -

Patch file for http://svn.apache.org/repos/asf/maven/site/trunk/src/site/apt/ant-tasks.apt.

Adds the information about pomRefId.

Show
Antoine Levy-Lambert added a comment - Patch file for http://svn.apache.org/repos/asf/maven/site/trunk/src/site/apt/ant-tasks.apt. Adds the information about pomRefId.
Hide
Antoine Levy-Lambert added a comment -

Can someone commit my patch ?

Regards,

Antoine

Show
Antoine Levy-Lambert added a comment - Can someone commit my patch ? Regards, Antoine
Hide
Vincent Siveton added a comment -

Patch applied. Thanks!

Show
Vincent Siveton added a comment - Patch applied. Thanks!

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: