Documentation for referring to artifacts classpaths is wrong ------------------------------------------------------------
Key: MANTRUN-104 URL: http://jira.codehaus.org/browse/MANTRUN-104 Project: Maven 2.x Antrun Plugin Issue Type: Bug Affects Versions: 1.3 Reporter: Andreas Kohn 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 {code} <property name="mvn.dependency.jar" refid="maven.dependency.my.group.id:my.artifact.id:classifier:jar.path"/> {code} This is using the wrong separators, ':' does not work. Instead, one needs to use '.', like this: {code} <property name="mvn.dependency.jar" refid="maven.dependency.my.group.id.my.artifact.id.classifier.jar.path"/> {code} 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: {quote} [INFO] [antrun:run {execution: build}] [DEBUG] Storing: maven.dependency.rhino.js.jar.path=/home/andreask/.m2/repository/rhino/js/1.7R1/js-1.7R1.jar {quote} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira