How do I solve this dependency conflict with Maven?
Hello!We are porting a web-app from wls 7 to jboss 4.3.
For dependency and build support we use Maven 2.
I found out that we got some dependency conflicts, but honestly I really do not understand how we should solve them.
At the following images the plugin in Eclipse show me the conflicts like:
(The graph)
http://dxc3nw.blu.livefilestore.com/y1pNlaWGeDvrcTuMBC3U-P4dDb8-TejBY4PaJnXD48Dcbjp65Uqlhrn3292Jmy2cNUO7RTQZjPt-NvOQuBYB9mNpxVSQg-uix28/dependency1.gif
(The list)
http://dxc3nw.blu.livefilestore.com/y1pNlaWGeDvrcTFj5E1uZ9_GMIqXRw3fdWG-TxUiFt3h94MiuDCF-E27wMbojDtLcc0zN8JnUdQixgKOOLka19kQIBXVkFpwu1H/dependency2.gif
For eg Struts 1.1 and Commons-digester 1.6 got dependencies to Commons-collections. But there is a conflict as you can see.
I guess Struts wants version 3.1 of Commons-collections?
I guess Commons-digester wants version 2.1 of Commons-collections?
...there for the conflict.
But what I'm I supposed to do?
Should I try to search for a later version of Commons-digester and hope that one got dependencies to Commons-collections 3.1? (It feels a bit time consuming and a bit "not safe" since we then use libs that is not tested, or I'm I wrong?)
Perhaps there is then other dependencies that will be conflicted.
Is there a better way (or should I say a correct way) to solve this?
I do feel I do not tackle this problem in the best of ways.
All help and comments are most welcome.
Best regards
Fredrik
