[
http://jira.codehaus.org/browse/MNG-3072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_100621
]
Mark Hobson commented on MNG-3072:
----------------------------------
I haven't looked at your project's dependencies, but sounds like a result of
nearest-wins conflict resolution - see MNG-612.
> 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