Re: DepMgt is useless because not transitive

2013-05-21 Thread Jason van Zyl
So if I back you up a bit, what is the problem you're actually trying to solve? Put aside right now what Maven is doing and describe what you want ideally and for what purpose? I can see the examples but I'm not sure what you're trying to make easier and for who. In Maven you've got a bunch of

Re: DepMgt is useless because not transitive

2013-05-21 Thread Paul Gier
Another possible solution would be to change the dependency versions in the pom before deployment to the repository. So when you build "yourproject" the pom is updated, maybe in the target directory, to reflect the dependency versions that were used during the build, and the imported depMgmt pom c

Re: DepMgt is useless because not transitive

2013-05-20 Thread John Casey
I should actually add that depMgmt actually happens at TWO levels in a graph: 1. the top-level that enforces versions/scope/exclusions for the whole graph 2. the direct project (or parent) that declares the dependency to be managed This makes sense, if you think about it: if you leave a versio

Re: DepMgt is useless because not transitive

2013-05-20 Thread John Casey
This is something I've seen in the wild in the past couple of weeks, too. I had to mock it up and see it for myself before I believed the user. Personally, option A makes the most sense to me. The reason is in Geoffrey's third slide...I would expect MyProject to simply append the dependency gr

Re: DepMgt is useless because not transitive

2013-05-19 Thread Jason van Zyl
Checking them out. It's not that I didn't agree with you the first time :-) It really is a matter of how to introduce and not introduce any discrepancies in behaviour. The general solution is to look at the dependencies of your final runtime and constrain them in the depMgmt section that you con

Re: DepMgt is useless because not transitive

2013-05-19 Thread Geoffrey De Smet
On 19-05-13 17:18, Jason van Zyl wrote: I can show you visually whats happening and it's not so much a bug (which I think I explained to you when you showed me the slides initially) but the current design. I'd like to propose to review the current design. Here are some idea's for an improved

Re: DepMgt is useless because not transitive

2013-05-19 Thread Geoffrey De Smet
On 19-05-13 17:05, Jason van Zyl wrote: You have the POMs handy you made the slides from? Yes :) Each puzzler in my presentation was tested out with this source code: https://github.com/ge0ffrey/maven-dependency-puzzlers That particular problem is in here: https://github.com/ge0ffrey/maven-d

Re: DepMgt is useless because not transitive

2013-05-19 Thread Jason van Zyl
I can show you visually whats happening and it's not so much a bug (which I think I explained to you when you showed me the slides initially) but the current design. On May 19, 2013, at 11:05 AM, Jason van Zyl wrote: > You have the POMs handy you made the slides from? > > On May 17, 2013, at

Re: DepMgt is useless because not transitive

2013-05-19 Thread Jason van Zyl
You have the POMs handy you made the slides from? On May 17, 2013, at 11:42 AM, Geoffrey De Smet wrote: > I've always believed this is a bug, not a feature. I am still hoping to > convince Jason etc of that. > > I talked about this last year already at Devoxx 2012 in my session "Maven > depen

Re: DepMgt is useless because not transitive

2013-05-19 Thread Geoffrey De Smet
I've always believed this is a bug, not a feature. I am still hoping to convince Jason etc of that. I talked about this last year already at Devoxx 2012 in my session "Maven dependency puzzlers". I had several reactions that "this must be a bug". Just look at 3 slides, and tell me maven 3.0.4

Re: DepMgt is useless because not transitive

2013-04-09 Thread Arnaud Héritier
Yes when I analyzed the behavior, seeing it was here for long long time I understood that it was probably done by design. I had a look at our doc ( http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Management) and we should probably detail more this be

Re: DepMgt is useless because not transitive

2013-04-09 Thread Jason van Zyl
This is how is was designed to work. Aether can do anything but the original implementation is simply a map of GAs with a version preference. If the GA is encountered then its version is overridden. This effectively gives you a target platform like mechanism but is intended to be controlled from

Re: DepMgt is useless because not transitive

2013-04-09 Thread Arnaud Héritier
On Tue, Apr 9, 2013 at 3:44 AM, Hervé BOUTEMY 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 ar

Re: DepMgt is useless because not transitive

2013-04-08 Thread Hervé BOUTEMY
uh, really interesting case this gives me more interest in reimporting maven-aether-provider unit tests to reproduce and track the issue :) 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. BTW, did you try with Mave

DepMgt is useless because not transitive

2013-04-08 Thread Arnaud Héritier
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 enfo