Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #24608
| From | Fredrik Jonson <fredrik@jonson.org> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: why maven auto import commons-lang |
| Date | 2013-07-03 07:01 +0000 |
| Message-ID | <slrnkt7j1v.f0c.fredrik@biggles.jonson.org> (permalink) |
| References | <2bfd9773-fb9e-472a-88a8-b086fa765bc0@googlegroups.com> <05043512-9c65-4813-8b70-0809f9b6db8e@googlegroups.com> |
In <05043512-9c65-4813-8b70-0809f9b6db8e@googlegroups.com> Lew wrote: > Maven is usually pretty good about tracking transitive dependencies and > fetching them. Some other POM probably called for it. If that is the case I recommend that you still declare it in your own pom too, just to make it explicit for your future self and other developers that work with the project. > This works great until multiple POMs ask for different versions of the > same library. Ouch! Yes, you need to be mindful about which transitive dependencies your declared dependencies pulls in. I make it a habit to regularily check my dependencies with the command 'mvn dependency:tree'. The few cases where version mismatch occurs it can normally be handled by declaring exclusions on one of the dependencies. In my experience this happens rarely and I cant remember the last time, if ever, where I was unable to resolve it with exclusions. -- Fredrik Jonson
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
why maven auto import commons-lang mcheung63@gmail.com - 2013-06-10 19:21 -0700
Re: why maven auto import commons-lang Lew <lewbloch@gmail.com> - 2013-06-11 15:33 -0700
Re: why maven auto import commons-lang Fredrik Jonson <fredrik@jonson.org> - 2013-07-03 07:01 +0000
Re: why maven auto import commons-lang Nicole Rivers <teamideyatech@gmail.com> - 2013-10-02 20:37 -0700
Re: why maven auto import commons-lang Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2013-10-03 17:23 +0300
Re: why maven auto import commons-lang Joerg Meier <joergmmeier@arcor.de> - 2013-10-03 16:27 +0200
csiph-web