On Thu, Dec 15, 2011 at 8:21 AM, Ron Wheeler
<[email protected]> wrote:
> On 14/12/2011 3:17 PM, scabbage wrote:
>>
>> I have a multi-module project with a parent pom and several sub-modules.
>> In
>> one of the module, I have a dependency that has a transitive dependency of
>> spring (2.0.6). How do I go about having the rest of my project using
>> Spring
>> 3.0.6.RELEASE?
>
> You are going to run Spring 3.0.6 when the application is running.
> 2.0.6 has to go. One Spring at a time.
> Exclude the transitive dependency on Spring in the sub module's dependency
> definition.
>
> Happens all the time and not just with Spring - a lot of Apache commons
> versions will get dragged in as transitive dependencies.
>
> Look at your dependency graph or list

Use http://maven.apache.org/plugins/maven-dependency-plugin/
Either
mvn dependency:tree
or
mvn dependency:list

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to