RE: maven 3 doesn't use reactor to find parent - revert to maven 2 behaviour

2013-05-29 Thread Mike Wilson
Thanks for your input! Baptiste MATHUS wrote: > Didn't dig on that very subject, but IIRC, kind of. Parent > pom could sometime be downloaded although it *was* part of > the reactor. > Being more explicit and less permissive is one of the > features of m3 (as is the build reproducibility for ma

Re: maven 3 doesn't use reactor to find parent - revert to maven 2 behaviour

2013-05-28 Thread Stephen Connolly
On 28 May 2013 20:22, Baptiste MATHUS wrote: > 2013/5/28 Mike Wilson > > > > Is this what you are seeing? > > > > Sort of. But it seems you have assigned relativePath to a non- > > empty value, something I think is incorrect in this kind of > > setup. > > I believe my setup was described in enou

Re: maven 3 doesn't use reactor to find parent - revert to maven 2 behaviour

2013-05-28 Thread Baptiste MATHUS
2013/5/28 Mike Wilson > > Is this what you are seeing? > > Sort of. But it seems you have assigned relativePath to a non- > empty value, something I think is incorrect in this kind of > setup. > I believe my setup was described in enough detail in my > previous post. I used no relativePath elemen

RE: maven 3 doesn't use reactor to find parent - revert to maven 2 behaviour

2013-05-28 Thread Mike Wilson
> Is this what you are seeing? Sort of. But it seems you have assigned relativePath to a non- empty value, something I think is incorrect in this kind of setup. I believe my setup was described in enough detail in my previous post. I used no relativePath elements. > The non-resolvable parent POM

Re: maven 3 doesn't use reactor to find parent - revert to maven 2 behaviour

2013-05-27 Thread Russell Gold
OK, I think I have managed to duplicate the behavior. Is this what you are seeing? > [ERROR] > [ERROR] The project com.packtpub.maven:obfuscate:1.0 > (/Users/russgold/projects/maven-course/sample4/obfuscator/pom.xml) has 1 error > [ERROR] Non-resolvable parent POM: Could not find artifa

Re: maven 3 doesn't use reactor to find parent - revert to maven 2 behaviour

2013-05-27 Thread Russell Gold
I'm having trouble understanding your use case still, I think - and you are disregarding the general pattern that child poms are found nested under their parent; however, from your description, I don't see why this wouldn't work. Can you make a small sample project that displays the problematic

RE: maven 3 doesn't use reactor to find parent - revert to maven 2 behaviour

2013-05-24 Thread Mike Wilson
There are many variations, but here is a simplification of our own scenario: 1) Consider a number of standalone modules with their own release cycles in their own VCS repos: parent/ [vcs0] pom.xml (1.0.0) module1/ [vcs1] pom.xml (1.1.0, parent=parent-1.0.0) module2/ [vcs2] ... 2)

Re: maven 3 doesn't use reactor to find parent - revert to maven 2 behaviour

2013-05-23 Thread Russell Gold
Only the developers could say for sure, but I would guess that it was done as part of code cleanup - that it's not so much that they wanted to remove the feature as it was that cleaning up the code might have made it hard to support the feature - and there was no particular reason to keep it. Bu

RE: maven 3 doesn't use reactor to find parent - revert to maven 2 behaviour

2013-05-23 Thread Mike Wilson
I'm trying to make the point that Maven 2 had the expected behaviour, and Maven 3 changed that into something less good. As far as I can read the motivation, it seems to have been done for the wrong reason. But it's quite likely I'm missing something, and that a better motivation may be found o

Re: maven 3 doesn't use reactor to find parent - revert to maven 2 behaviour

2013-05-23 Thread Russell Gold
I'd think this would be better suited for the maven developers list… But it seems to me that in the case where modules are not supposed to know where their parents are located, the working assumption is that the parent is already in the repo and built separately. That is, there are two cases:

maven 3 doesn't use reactor to find parent - revert to maven 2 behaviour

2013-05-23 Thread Mike Wilson
[Note: this entire post deals with project layouts where it is undesired for modules to know in what filesystem directory their parent module resides. This rules out relying on Maven parent found in parent directory or through the relativePath element.] Maven 3 will throw a "Non-resolvable paren