You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jorg Heymans (JIRA)" <ji...@codehaus.org> on 2007/05/01 19:07:26 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#action_94702 ]
Jorg Heymans commented on MECLIPSE-262:
---------------------------------------
I think we're suffering from the same problem. In our root pom <depMgmt> we declared
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1</version>
<exclusions>
<exclusion>
<artifactId>logkit</artifactId>
<groupId>logkit</groupId>
</exclusion>
<exclusion>
<artifactId>avalon-framework</artifactId>
<groupId>avalon-framework</groupId>
</exclusion>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</exclusion>
</exclusions>
</dependency>
(note the exclusion of avalon-framework)
However, the eclipse plugin still selects avalon-framework :
[INFO] [eclipse:eclipse]
[DEBUG] org.apache.cocoon:cocoon-sitemap-impl:jar:1.0.0-RC1-SNAPSHOT (selected for null)
[DEBUG] commons-collections:commons-collections:jar:3.2:compile (selected for compile)
[DEBUG] commons-jxpath:commons-jxpath:jar:1.2:compile (selected for compile)
[DEBUG] junit:junit:jar:3.8:compile (applying version: 3.8.2)
[DEBUG] junit:junit:jar:3.8.2:compile (applying scope: test)
[DEBUG] junit:junit:jar:3.8.2:test (selected for test)
[DEBUG] xml-apis:xml-apis:jar:2.0.2:compile (applying version: 1.3.02)
[DEBUG] xml-apis:xml-apis:jar:1.3.02:compile (selected for compile)
[DEBUG] commons-logging:commons-logging:jar:1.0:compile (applying version: 1.1)
[DEBUG] commons-logging:commons-logging:jar:1.1:compile (selected for compile)
[DEBUG] log4j:log4j:jar:1.2.12:compile (applying version: 1.2.14)
[DEBUG] log4j:log4j:jar:1.2.14:compile (selected for compile)
[DEBUG] logkit:logkit:jar:1.0.1:compile (selected for compile)
[DEBUG] avalon-framework:avalon-framework:jar:4.1.3:compile (selected for compile)
[DEBUG] javax.servlet:servlet-api:jar:2.3:compile (applying version: 2.4)
[DEBUG] javax.servlet:servlet-api:jar:2.4:compile (selected for compile)
[DEBUG] commons-collections:commons-collections:jar:2.0:compile (applying version: 3.2)
[DEBUG] javax.servlet:servlet-api:jar:2.4:provided (not setting scope to: compile; local scope provided wins)
The dependency plugin shows correct dependency resolution (no avalon-framework)
[INFO] [dependency:resolve]
[INFO]
[INFO] The following files have been resolved:
[INFO] aopalliance:aopalliance:jar:1.0 (scope = compile)
[INFO] commons-collections:commons-collections:jar:3.2 (scope = compile)
[INFO] commons-io:commons-io:jar:1.3.1 (scope = compile)
[INFO] commons-jxpath:commons-jxpath:jar:1.2 (scope = compile)
[INFO] commons-lang:commons-lang:jar:2.3 (scope = compile)
[INFO] commons-logging:commons-logging:jar:1.1 (scope = compile)
[INFO] concurrent:concurrent:jar:1.3.4 (scope = compile)
[INFO] jakarta-regexp:jakarta-regexp:jar:1.4 (scope = compile)
[INFO] javax.servlet:servlet-api:jar:2.4 (scope = provided)
[INFO] junit:junit:jar:3.8.2 (scope = test)
[INFO] log4j:log4j:jar:1.2.14 (scope = compile)
[INFO] org.apache.avalon.framework:avalon-framework-api:jar:4.3.1 (scope = compile)
[INFO] org.apache.avalon.framework:avalon-framework-impl:jar:4.3.1 (scope = compile)
[INFO] org.apache.cocoon:cocoon-configuration-api:jar:1.0.1-SNAPSHOT (scope = compile)
[INFO] org.apache.cocoon:cocoon-pipeline-api:jar:1.0.0-RC1-SNAPSHOT (scope = compile)
[INFO] org.apache.cocoon:cocoon-pipeline-impl:jar:1.0.0-RC1-SNAPSHOT (scope = compile)
[INFO] org.apache.cocoon:cocoon-sitemap-api:jar:1.0.0-RC1-SNAPSHOT (scope = compile)
[INFO] org.apache.cocoon:cocoon-spring-configurator:jar:1.0.1-SNAPSHOT (scope = compile)
[INFO] org.apache.cocoon:cocoon-thread-api:jar:1.0.0-RC1-SNAPSHOT (scope = compile)
[INFO] org.apache.cocoon:cocoon-util:jar:1.0.0-RC1-SNAPSHOT (scope = compile)
[INFO] org.apache.cocoon:cocoon-xml-api:jar:1.0.0-RC1-SNAPSHOT (scope = compile)
[INFO] org.apache.excalibur.components:excalibur-pool-api:jar:2.2.1 (scope = compile)
[INFO] org.apache.excalibur.components:excalibur-sourceresolve:jar:2.2.1 (scope = compile)
[INFO] org.apache.excalibur.components:excalibur-store:jar:2.2.1 (scope = compile)
[INFO] org.apache.excalibur.components:excalibur-xmlutil:jar:2.2.1 (scope = compile)
[INFO] org.apache.excalibur.containerkit:excalibur-instrument-api:jar:2.2.1 (scope = compile)
[INFO] org.apache.excalibur.containerkit:excalibur-logger:jar:2.2.1 (scope = compile)
[INFO] org.springframework:spring-aop:jar:2.0.3 (scope = compile)
[INFO] org.springframework:spring-beans:jar:2.0.3 (scope = compile)
[INFO] org.springframework:spring-context:jar:2.0.3 (scope = compile)
[INFO] org.springframework:spring-core:jar:2.0.3 (scope = compile)
[INFO] org.springframework:spring-web:jar:2.0.3 (scope = compile)
[INFO] xml-apis:xml-apis:jar:1.3.02 (scope = compile)
> 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: dependency resolution
> Affects Versions: 2.3
> Environment: Maven 2.0.6, 2.0.4
> Reporter: Carlos Sanchez
> Attachments: compile.txt, eclipse.txt
>
>
> 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