Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.6
-
Fix Version/s: 1.7
-
Labels:None
-
Number of attachments :
Description
On the page https://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html it says:
"A property is set for each dependency with the format "groupId:artifactId[:classifier]:type". For example, to show the path to a dependency with groupId "org.apache" and artifactId "common-util", the following could be used."
The position of the classifier in the property is not accurate, however. Through trial and error, I have determined that it is instead:
groupId:artifactId:type[:classifier]
So for the following:
<dependency>
<groupId>net.sf.docbook</groupId>
<artifactId>docbook-xml</artifactId>
<type>zip</type>
<classifier>resources</classifier>
<version>$
-all</version>
</dependency>
This works:
$$
{net.sf.docbook:docbook-xsl:zip:ns-resources}=
$
But this does not work:
$$
{net.sf.docbook:docbook-xsl:ns-resources:zip}=
$
Change the sentence to the following.
"A property is set for each dependency with the format "groupId:artifactId:type[:classifier]". For example, to show the path to a dependency with groupId "org.apache" and artifactId "common-util", the following could be used."
It might be helpful to include an example that has a classifier as well.