Avatar billede fredand Forsker
22. maj 2009 - 23:17 Der er 1 løsning

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
Avatar billede fredand Forsker
23. maj 2009 - 22:56 #1
Hello guys!

With some trixing back and forth with the exclusion-tag (Maven2-plugin was very helpfull) I managed to get it right without any red arrows.

...and my app worked pretty fine i jboss as well.

Best regards
Fredrik
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester