You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Mike Wilson <mi...@hotmail.com> on 2013/05/28 17:03:26 UTC
parent pom lookup in reactor
As of Maven 3 parent POMs are no longer searched for in the
reactor. The advantage given in [1] doesn't seem to outweigh
the disadvantages for the user of Maven.
I'd like to understand more about the motivations behind this
change. Are there any pointers to previous discussion?
Thanks
Mike Wilson
[1]
https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html#Maven3.xCom
patibilityNotes-ParentPOMResolution
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: parent pom lookup in reactor
Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi Mike,
> As of Maven 3 parent POMs are no longer searched for in the
> reactor.
This sentence as conclusion of the cited web-site is simply wrong...
Excerpt of the cited web site:
Maven 3 no longer resolves parent POMs from the local project checkout
unless the child POM's <relativePath> element is accurate, whether
explicitly given or using the default value.
You must be aware of the part "...unless the child POM's <relativePath
element is accurate, whether explicitly given or using the default value.".
The default value of a relativePath is "../pom.xml" which adresses the
parent in the parent folder inside the folder structure on the file system.
> I'd like to understand more about the motivations behind this
> change. Are there any pointers to previous discussion?
The second part of the explanation explains an example:
In Maven 2, building the child project in isolation could fail while the
reactor build would succeed to resolve the parent.
This means in Maven 2 it could happen if you try to build a child to
fail, cause the parent pom is resolved against the local repository
instead from the filesystem...
Kind regards
Karl-Heinz Marbaise
--
SoftwareEntwicklung Beratung Schulung Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl-Heinz Marbaise ICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen http://www.soebes.de
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org