[ https://jira.codehaus.org/browse/MASSEMBLY-303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg updated MASSEMBLY-303: -------------------------------------- Description: 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: {code:xml} <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> {code} Notice the commented out exclusion for {noformat}*:*:so:linux_2x{noformat} (This assembly is for the windows platform) With the {noformat}*:*:so:linux_2x{noformat} exclusion in place I get: {noformat} o '*:*:so:linux_2x' o '*:*:so:linux_3x' {noformat} With the {noformat}*:*:so:linux_2x{noformat} exclusion commented out I get: {noformat} [INFO] Processing DependencySet (output=/lib) [WARNING] The following patterns were never triggered in this artifact exclusion filter: o '*:*:so:linux_3x' {noformat} 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, {noformat}*:*:so:solaris{noformat} 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! was: 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! > excludes:exclude ignores classifier > ----------------------------------- > > Key: MASSEMBLY-303 > URL: https://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: > {code:xml} > <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> > {code} > Notice the commented out exclusion for > {noformat}*:*:so:linux_2x{noformat} > (This assembly is for the windows platform) > With the > {noformat}*:*:so:linux_2x{noformat} > exclusion in place I get: > {noformat} > o '*:*:so:linux_2x' > o '*:*:so:linux_3x' > {noformat} > With the > {noformat}*:*:so:linux_2x{noformat} > exclusion commented out I get: > {noformat} > [INFO] Processing DependencySet (output=/lib) > [WARNING] The following patterns were never triggered in this artifact > exclusion > filter: > o '*:*:so:linux_3x' > {noformat} > 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, > {noformat}*:*:so:solaris{noformat} > 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, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira