[ http://jira.codehaus.org/browse/MASSEMBLY-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey updated MASSEMBLY-190: --------------------------------- Affects Version/s: (was: 2.2) 2.2-beta-3 Fix Version/s: (was: 2.2) 2.2-beta-3 dependencySets need to be resolved all at once, by somehow aggregating all of the sets' include/exclude logic and applying it to the direct dependencies...then, after the project's dependencies are resolved, no further calls to resolve should be made. Instead, the actual dependencySets should each filter the single resolved set of artifacts according to their own rules to produce the output configured. This is just a note so I can come back and reference the issue before I start implementing this logical change. This sort of change should allow the standard conflict-resolution strategies to be used, while still allowing certain direct dependencies (like, say, with scope == test or similar) to be entirely excluded from those resolved for the assembly construction. > Problem with dependency conflict resolution on multi-module project > ------------------------------------------------------------------- > > Key: MASSEMBLY-190 > URL: http://jira.codehaus.org/browse/MASSEMBLY-190 > Project: Maven 2.x Assembly Plugin > Issue Type: Bug > Affects Versions: 2.2-beta-3 > Environment: Using maven 2.0.5 and assembly 2.2-SNAPSHOT > Reporter: Frédéric ESNAULT > Fix For: 2.2-beta-3 > > > Hi, > I'm trying to use the assembly plugin to gather all the jars of my project, > including all dependencies. > As the project is composed of several modules, I use a descriptor which looks > like this : > <assembly> > <id>bin</id> > <formats> > <format>zip</format> > </formats> > <includeBaseDirectory>false</includeBaseDirectory> > <moduleSets> > <moduleSet> > <binaries> > <outputDirectory>/</outputDirectory> > <unpack>false</unpack> > <includeDependencies>true</includeDependencies> > </binaries> > </moduleSet> > </moduleSets> > </assembly> > It seems to work fine at first sight - it creates a zip containing all the > jar files. However, I find in the archive several instances of the same > dependency with differents versions, for instance asm-1.5.3 and asm-2.2.3. > This is a surprise as maven is supposed to take care of conflict resolution. > When I look at a detailed trace, it appears that conflict resolution is done > but on each module independently. But my modules are intended to work > together and I expect to get an assembly with only one version of each > dependency found on the whole set of mudules. It seems to me that conflict > resolution is not managed properly in this use case. -- 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