RE: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-12 Thread Todd Thiessen
> At test runtime I presume? You use the test scope. Is it > hurting anything if it's there on the test compile classpath? Its an example of how the scope definition is overloaded. Whether or not it hurts anything is moot. - To

Re: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-12 Thread Brian Fox
On Mon, May 11, 2009 at 9:48 AM, Todd Thiessen wrote: > > > Are there many cases where you want something for compilation > > that isn't needed at runtime? I don't see them as being separate. > > Really? I am surprised. Yes there is a relation between compile and > runtime. However, there is a di

Re: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-11 Thread Stevo Slavić
Just created http://jira.codehaus.org/browse/MNG-4156 Regards, Stevo. On Mon, May 11, 2009 at 6:40 PM, Mark Hobson wrote: > 2009/5/11 Brian Fox : > > At face value the logic seems to make sense, but I haven't thought > through > > all the ramifications. I thought Mark Hobson mentioned some case

Re: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-11 Thread Mark Hobson
2009/5/11 Brian Fox : > At face value the logic seems to make sense, but I haven't thought through > all the ramifications. I thought Mark Hobson mentioned some cases where the > opposite was desired. At this point your best bet is to prepare a proposal > on http://docs.codehaus.org/display/MAVENUS

Re: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-11 Thread Stephen Connolly
2009/5/11 Todd Thiessen > > I think the answer here is that nobody had a good example at the > time! > > And even when you do, you can use exclusions which you interesting > mention in your next response ;-). So if you want a particular compile > transitive dependency to be included only as test

RE: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-11 Thread Todd Thiessen
> I think the answer here is that nobody had a good example at the time! And even when you do, you can use exclusions which you interesting mention in your next response ;-). So if you want a particular compile transitive dependency to be included only as test, exclude it and add it to your local

Re: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-11 Thread Stephen Connolly
2009/5/11 Todd Thiessen > > > Are there many cases where you want something for compilation > > that isn't needed at runtime? I don't see them as being separate. > > Really? I am surprised. Yes there is a relation between compile and > runtime. However, there is a different relation between compi

RE: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-11 Thread Todd Thiessen
> Are there many cases where you want something for compilation > that isn't needed at runtime? I don't see them as being separate. Really? I am surprised. Yes there is a relation between compile and runtime. However, there is a different relation between compile and test. Scope has multiple mea

Re: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-10 Thread Brian Fox
2009/5/10 Stevo Slavić > "Just because that's the way things are doesn't mean that's how they should > be.", said a character in the movie "Australia". > I dig that. > > In this particular scenario, local test scoped dependency vs compile scope > transitive dependency, it's my opinion that cur

Re: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-10 Thread Stevo Slavić
"Just because that's the way things are doesn't mean that's how they should be.", said a character in the movie "Australia". In this particular scenario, local test scoped dependency vs compile scope transitive dependency, it's my opinion that current strategy is wrong. Local test scoped dependenc

Re: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-10 Thread Brian Fox
By local I mean the pom currently being built. Stuff defined here always overrides dependencies and transitive dependencies. On Sun, May 10, 2009 at 5:34 AM, Stevo Slavić wrote: > Is there any reason why would local win in this particular case? > > Regards, > Stevo. > > On Sun, May 10, 2009 at 5

Re: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-10 Thread Stevo Slavić
Is there any reason why would local win in this particular case? Regards, Stevo. On Sun, May 10, 2009 at 5:26 AM, Brian Fox wrote: > On Fri, May 8, 2009 at 11:17 AM, Todd Thiessen > wrote: > > > Override the dependency defined in the POM, as Steve outline in his > > earlier response. Let me qu

Re: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-09 Thread Brian Fox
On Fri, May 8, 2009 at 11:17 AM, Todd Thiessen wrote: > Override the dependency defined in the POM, as Steve outline in his > earlier response. Let me quote his explanation for ease of reference: > > "E.g. if project P has test scoped dependency to a LIB1, and compile > scoped dependency to LIB2,

RE: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-08 Thread Todd Thiessen
to a single variable. --- Todd Thiessen > -Original Message- > From: Brian Fox [mailto:bri...@infinity.nu] > Sent: Friday, May 08, 2009 11:00 AM > To: Maven Users List > Subject: Re: Re: Transitive and inherited dependencies - > potential bug, or my misunderstanding

Re: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-08 Thread Brian Fox
2009/5/8 Todd Thiessen > Your argument Jorg I think applies to provided and runtime scope, but not > to test. > > The root smell here lies in the definition of "scope". Test scope means > needed to compile test code. Compile scope means needed to compile > production and test code. These are bo

RE: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-08 Thread Todd Thiessen
Your argument Jorg I think applies to provided and runtime scope, but not to test. The root smell here lies in the definition of "scope". Test scope means needed to compile test code. Compile scope means needed to compile production and test code. These are both related to when a dependency i