On Tue, Apr 9, 2013 at 3:44 AM, Hervé BOUTEMY <[email protected]> wrote:

> uh, really interesting case
>

I was sure you'll like it ;-)


>
> this gives me more interest in reimporting maven-aether-provider unit
> tests to
> reproduce and track the issue :)
>
>
+1


> I just tried the example, but the beta spring artifact isn't in Spring: I
> can't simply reproduce, will need to work more on it.
>
>
Ok, You have to install artifacts from the 1/ directory first and then 3/
(we forgot to recopied them)




> BTW, did you try with Maven 2.2.1? Does it give the same result?
>
>
Yes, It's not only an aether bug :(

arnaud@imac-arnaud:~/Code/Misc/maven-puzzler/3 (git:master *%)$ mvn -V
dependency:list
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_43
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.8.3" arch: "x86_64" Family: "mac"
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Unnamed - fr.devoxx:myProject:jar:1
[INFO]    task-segment: [dependency:list]
[INFO]
------------------------------------------------------------------------
[INFO] [dependency:list {execution: default-cli}]
[INFO]
[INFO] The following files have been resolved:
[INFO]    fr.devoxx:A:jar:1:compile
[INFO]    fr.devoxx:X:jar:1:compile
[INFO]    org.springframework:spring:jar:3.5-BETA-2:compile
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Apr 09 09:47:08 CEST 2013
[INFO] Final Memory: 10M/125M
[INFO]
------------------------------------------------------------------------


arnaud@imac-arnaud:~/Code/Misc/maven-puzzler/3 (git:master *%)$ mvn -V
dependency:list
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19
14:51:28+0100)
Maven home: /Users/arnaud/Applications/apache-maven
Java version: 1.6.0_43, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.3", arch: "x86_64", family: "mac"
[INFO] Scanning for projects...
[INFO]

[INFO]
------------------------------------------------------------------------
[INFO] Building myProject 1
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.1:list (default-cli) @ myProject ---
[INFO]
[INFO] The following files have been resolved:
[INFO]    fr.devoxx:A:jar:1:compile
[INFO]    fr.devoxx:X:jar:1:compile
[INFO]    org.springframework:spring:jar:3.5-BETA-2:compile
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2.915s
[INFO] Finished at: Tue Apr 09 09:47:58 CEST 2013
[INFO] Final Memory: 6M/125M
[INFO]
------------------------------------------------------------------------





> Regards,
>
> Hervé
>
> Le lundi 8 avril 2013 14:28:07 Arnaud Héritier a écrit :
> > Hi all (and especially Herve, Jason and those who are working on Aether),
> >
> >   We are several to hit what we consider to be a bug but myself I don't
> > understand how we did to not see it before.
> >   To be short the problem resides in depMgt usage. It is useful only in
> the
> > project you are building to enforce/lock some versions. If this is in a
> > transitive path of a dep it is unused.
> >   For example here is a sample :
> > http://parleys.com/#play/515ef261e4b0cb5a00d98074/chapter34/about
> >   The code to test :
> https://github.com/ndeloof/maven-puzzler/tree/master/3
> >   As far as we don't define the version in the depMgt of the project
> itself
> > Maven will use the one from dependencies and won't take care of any other
> > depMgt in the transitive path
> >
> >   Vincent Massol also reproduced it at code level here :
> > http://jira.codehaus.org/browse/MNG-5462
> >
> >   If someone could have a look at this issue please.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
-----
Arnaud Héritier
http://aheritier.net
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier

Reply via email to