You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Chad Wilson (JIRA)" <ji...@codehaus.org> on 2010/01/26 04:40:55 UTC
[jira] Commented: (MECLIPSE-262) Maven compilation and eclipse
classpath don't match with conflicting versions at same dependency depth
[ http://jira.codehaus.org/browse/MECLIPSE-262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=208161#action_208161 ]
Chad Wilson commented on MECLIPSE-262:
--------------------------------------
The core issue here still happens with maven-eclipse-plugin 2.7, under Maven 2.2.1, FWIW. If I understand correctly from the Dependency Mediation Section of [Introduction to the Dependency Mechanism|http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Transitive_Dependencies], from Maven 2.0.9+ such a conflict at the same depth should be resolved by choosing the version from the parent which is first declared in your pom.xml.
I think it was indeterminate from Maven's perspective before that point so I'm not so surprised that this bug was logged against Maven 2.0.6, however now there's a rule, so the Eclipse plugin should surely behave consistently with the dependency plugin (if it cannot share the source, as I read from MECLIPSE-472).
> Maven compilation and eclipse classpath don't match with conflicting versions at same dependency depth
> ------------------------------------------------------------------------------------------------------
>
> Key: MECLIPSE-262
> URL: http://jira.codehaus.org/browse/MECLIPSE-262
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: Core : Dependencies resolution and build path (.classpath)
> Affects Versions: 2.3
> Environment: Maven 2.0.6, 2.0.4
> Reporter: Carlos Sanchez
> Attachments: compile.txt, eclipse.txt, screenshot-1.jpg, testcase.zip
>
>
> https://svn.apache.org/repos/asf/maven/components/trunk/maven-core rev# 533182
> compile uses plexus-component-api-1.0-alpha-24 (the right one)
> eclipse:eclipse uses plexus-component-api-1.0-alpha-16
--
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