[
https://jira.codehaus.org/browse/MASSEMBLY-683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=342576#comment-342576
]
Karl Heinz Marbaise commented on MASSEMBLY-683:
-----------------------------------------------
The point is that for xerces-1.4.4 no relocation enty in central exists whereas
for xerces-2.0.2 it does.
This can't be solved by maven-assembly-plugin nor by maven.
In that case the groupId/artifactId's are different in the poms which means
having both as a result. Such a warning about relocated artifacts should be
fixed.
Based on the above I can't see a wrong behaviour. So i will closes the issue.
If you have any objections please don't hesitate to reopen the issue.
> dependencySet includes different versions of same dependency when there is a
> pom relocation involved
> ----------------------------------------------------------------------------------------------------
>
> Key: MASSEMBLY-683
> URL: https://jira.codehaus.org/browse/MASSEMBLY-683
> Project: Maven Assembly Plugin
> Issue Type: Bug
> Components: dependencySet
> Affects Versions: 2.4
> Environment: Embedded Maven 3.0.4 in Eclipse Kepler and Maven 3.0.4
> on Jenkins. All on Windows 7 with Oracle JDK 7.
> Reporter: Claus Schrammel
> Attachments: acme.demo.zip
>
>
> When dependencySets are resolved, the assembly plugin handles different
> versions of the same artifact and provides the same result as Maven built-in
> dependency resolution does.
> But it fails if the artifact is relocated in its pom. The attached example
> shows this for xerces:xerces.
> The app depends on lib-a, which itself depends on xerces:xerces:1.4.4.
> The app also depends on lib-b, which itself depends on xerces:xerces:2.0.2,
> but that is relocated to xerces:xercesImpl.
> So the dependencySet on app contains xerces-1.4.4 *and* xercesImpl-2.0.2,
> causing problems on the classpath of the actual application.
> The demo contains a standard case with 2 different log4j version which is
> working fine.
> The demo also uses the maven-dependency-plugin that is able to resolve the
> dependencies correctly. Only xerces-1.4.4 goes into the target/dependency
> folder.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)