[ http://jira.codehaus.org/browse/MASSEMBLY-303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130099#action_130099 ]
Robin Roos commented on MASSEMBLY-303: -------------------------------------- I think this might be a duplicate of MASSEMBLY-223. I raised this because I didn't see any artifacts from linux_2x appear when I commented out the exclusion, but it might be that artifacts with a non-empty classifier are not part of the default inclusion, in which case I would not have seen them anyway. Let me know how I can get the latest assembly plugin bniary and I'll retest here. Thanks, Robin. > 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