You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Achim Abeling (JIRA)" <ji...@codehaus.org> on 2007/06/26 14:29:13 UTC

[jira] Commented: (MNG-3072) Dependency with lower version number is chosen

    [ http://jira.codehaus.org/browse/MNG-3072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_100600 ] 

Achim Abeling commented on MNG-3072:
------------------------------------

It works if the dependency org.springframework:spring-context is explicitly defined.

> Dependency with lower version number is chosen
> ----------------------------------------------
>
>                 Key: MNG-3072
>                 URL: http://jira.codehaus.org/browse/MNG-3072
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.6
>            Reporter: Achim Abeling
>         Attachments: surefire-bug.tar.gz
>
>
> My test application tries to create a spring org.springframework.context.ApplicationContext.
> This fails because of a 
> java.lang.NoClassDefFoundError: org/springframework/beans/factory/support/ConfigurableBeanFactoryUtils
> This class is included in org.springframework:spring-context:1.2.8 but not in version 2.0.6 which I am using.
> Version 1.2.8 is a dependency for e.g org.apache.axis2:axis2-kernel.
> Maven chooses version 1.2.8. Running with option -X one can see the line
> [DEBUG]     org.springframework:spring-context:jar:2.0.6:compile (removed - nearer found: 1.2.8)
> Surprisingly if the cglib dependency in my test project is commented version 2.0.6 is chosen. 
> (The test project is called surefire-bug because I first thought it had to do with the surefire-plugin and was too lazy to rename everything.)

-- 
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