Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2
-
None
-
None
Description
The documentation says:
--------------------------
(website: http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_dependencySet )
for includes and excludes:
(Many) When <include> subelements are present, they define a set of artifact coordinates to include. If none is present, then <includes> represents all valid values. Artifact coordinatess may be given in simple groupId:artifactId form, or they may be fully qualified in the form groupId:artifactId:type:version[:classifier]. Additionally, wildcards can be used, as in :maven-
--------------------------
The book:
http://www.sonatype.com/books/mvnref-book/reference/assemblies-sect-controlling-contents.html#assemblies-sect-fine-tune
says:
groupId:artifactId:type[:classifier] - conflict id
The pattern allows you to specify a wider set of coordinates to create a more specific include/exclude pattern.
groupId:artifactId:type[:classifier]:version - full artifact identity
==========================
Trying this out, the book seems correct, while the website ordering gives a warning that nothing is found. The difference is: the placement of "version" - the way that works is to put it at the end, not in the middle.
Another page on the website, http://maven.apache.org/plugins/maven-assembly-plugin/advanced-descriptor-topics.html#Advanced_Artifact-Matching_in_includes_and_excludes , also has the order for the version not at the end, which I think is wrong.