Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #24355 > unrolled thread
| Started by | mcheung63@gmail.com |
|---|---|
| First post | 2013-06-10 19:21 -0700 |
| Last post | 2013-10-03 16:27 +0200 |
| Articles | 6 — 6 participants |
Back to article view | Back to comp.lang.java.programmer
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
| From | mcheung63@gmail.com |
|---|---|
| Date | 2013-06-10 19:21 -0700 |
| Subject | why maven auto import commons-lang |
| Message-ID | <2bfd9773-fb9e-472a-88a8-b086fa765bc0@googlegroups.com> |
hi all in my class, i have "import org.apache.commons.lang.ArrayUtils;". In pom.xml, i didn't import commons-lang, but i can "mvn compile" successfully. Why? thanks from Peter (cmk128@hotmail.com)
[toc] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-06-11 15:33 -0700 |
| Message-ID | <05043512-9c65-4813-8b70-0809f9b6db8e@googlegroups.com> |
| In reply to | #24355 |
On Monday, June 10, 2013 7:21:56 PM UTC-7, mche...@gmail.com wrote: > in my class, i have "import org.apache.commons.lang.ArrayUtils;". In pom.xml, i didn't import commons-lang, but i can "mvn compile" successfully. Why? Maven is usually pretty good about tracking transitive dependencies and fetching them. Some other POM probably called for it. This works great until multiple POMs ask for different versions of the same library. Ouch! -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Fredrik Jonson <fredrik@jonson.org> |
|---|---|
| Date | 2013-07-03 07:01 +0000 |
| Message-ID | <slrnkt7j1v.f0c.fredrik@biggles.jonson.org> |
| In reply to | #24367 |
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
[toc] | [prev] | [next] | [standalone]
| From | Nicole Rivers <teamideyatech@gmail.com> |
|---|---|
| Date | 2013-10-02 20:37 -0700 |
| Message-ID | <fabc6836-ec66-4bf0-8ba2-57e7cd35a016@googlegroups.com> |
| In reply to | #24355 |
hi there! we have a related article about Maven. You may want to check it out, this might help http://www.ideyatech.com/2012/07/setting-up-maven/ Thanks! :)
[toc] | [prev] | [next] | [standalone]
| From | Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> |
|---|---|
| Date | 2013-10-03 17:23 +0300 |
| Message-ID | <lvwqluwhz7.fsf@saunalahti.fi> |
| In reply to | #25443 |
Nicole Rivers <teamideyatech@gmail.com> writes: > hi there! we have a related article about Maven. You may want to check it Who is "we" and why is there no referred posting even though yours contains the References header and the subject begins with "Re:"? -- Jukka Lahtinen
[toc] | [prev] | [next] | [standalone]
| From | Joerg Meier <joergmmeier@arcor.de> |
|---|---|
| Date | 2013-10-03 16:27 +0200 |
| Message-ID | <iygxky93kw9v.bmbam9ur7r36$.dlg@40tude.net> |
| In reply to | #25453 |
On Thu, 03 Oct 2013 17:23:56 +0300, Jukka Lahtinen wrote: > Nicole Rivers <teamideyatech@gmail.com> writes: >> hi there! we have a related article about Maven. You may want to check it > Who is "we" and why is there no referred posting even though yours > contains the References header and the subject begins with "Re:"? Because you are conversing with a spam bot that replies to decade old posts with spam. Liebe Gruesse, Joerg -- Ich lese meine Emails nicht, replies to Email bleiben also leider ungelesen.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web