mirror of https://github.com/apache/maven.git
Rule: Don't inherit parent relativePath
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@718479 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
00a0f513b1
commit
d9a4b136c4
|
@ -407,11 +407,13 @@ public final class PomClassicTransformer
|
|||
//Project Name Inheritance Rule
|
||||
//Packaging Inheritance Rule
|
||||
//Profiles not inherited rule
|
||||
//parent.relativePath not inherited rule
|
||||
for ( ModelProperty mp : tmp )
|
||||
{
|
||||
String uri = mp.getUri();
|
||||
if ( domainModels.indexOf( domainModel ) > 0 && ( uri.equals( ProjectUri.name ) ||
|
||||
uri.equals( ProjectUri.packaging ) || uri.startsWith( ProjectUri.Profiles.xUri ) ) )
|
||||
uri.equals( ProjectUri.packaging ) || uri.startsWith( ProjectUri.Profiles.xUri ) )
|
||||
|| uri.startsWith( ProjectUri.Parent.relativePath ))
|
||||
{
|
||||
clearedProperties.add( mp );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue