excludes:exclude ignores classifier ----------------------------------- Key: MASSEMBLY-303 URL: http://jira.codehaus.org/browse/MASSEMBLY-303 Project: Maven 2.x Assembly Plugin Issue Type: Bug Environment: C:\projects\calypso\9.2.0>mvn -version Maven version: 2.0.8 Java version: 1.5.0_14 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" Reporter: Robin Roos
When I specify an excludes:exclude that contains a classifier, the exclude seems to exclude all artifacts matching the groupId, artifactId and type regardless of classifier. My dependency set definition is: <dependencySets> <dependencySet> <outputDirectory>/lib</outputDirectory> <excludes> <exclude>*:*:so:solaris</exclude> <!--<exclude>*:*:so:linux_2x</exclude>--> <exclude>*:*:so:linux_3x</exclude> </excludes> </dependencySet> <!-- another depdendencySet here --> </dependencySets> Notice the commented out exclusion for *:*:so:linux_2x. (This assembly is for the windows platform) With the *:*:so:linux_2x exclusion in place I get: o '*:*:so:linux_2x' o '*:*:so:linux_3x' With the *.*.so:linux_2x exclusion commented out I get: [INFO] Processing DependencySet (output=/lib) [WARNING] The following patterns were never triggered in this artifact exclusion filter: o '*:*:so:linux_3x' and yet the artifacts that have type=so and classifier=linux_2x do not appear in my generated assembly. I conclude that the first exclusion, *:*:so:solaris, excludes all of type=so, whereas I expected it to exclude only those with type=so and classifier=solaris. BTW, Thanks for a great product! -- 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