Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
1.3
-
None
-
None
Description
The documentation on http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html claims that referring to the path of an artifact can be accomplished with
<property name="mvn.dependency.jar" refid="maven.dependency.my.group.id:my.artifact.id:classifier:jar.path"/>
This is using the wrong separators, ':' does not work. Instead, one needs to use '.', like this:
<property name="mvn.dependency.jar" refid="maven.dependency.my.group.id.my.artifact.id.classifier.jar.path"/>
Also while there: it would be nice to have the documentation be clear about the fact that the classifier part is only set if a classifier is defined on the artifact. For an artifact without classifier, the property would be called maven.dependency.my.group.id.my.artifact.id.jar.path.
And of course, 'jar' should be replaced by 'type' to match the other parts.
This information now has to be found by trying the documented way, seeing it fail, and then scanning through the debug output which eventually says:
[INFO] [antrun:run
Unknown macro: {execution}]
[DEBUG] Storing: maven.dependency.rhino.js.jar.path=/home/andreask/.m2/repository/rhino/js/1.7R1/js-1.7R1.jar
Attachments
Issue Links
- is duplicated by
-
MANTRUN-110 mistake in antrun docs: refid="maven.dependency....
- Closed