mirror of https://github.com/apache/maven.git
(Merged from 384102.) Fixing site URL calculation to disregard child module path adjustment. Second attempt.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@384107 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
063474e205
commit
55dc9e4ccb
|
@ -2,7 +2,7 @@
|
|||
<files>
|
||||
<file>
|
||||
<location>target/effective-pom.xml</location>
|
||||
<contains>scp://host/path/sub1</contains>
|
||||
<contains>scp://host/path/parent/sub1</contains>
|
||||
</file>
|
||||
<file>
|
||||
<location>target/effective-pom.xml</location>
|
||||
|
|
|
@ -108,7 +108,7 @@ public class DefaultModelInheritanceAssembler
|
|||
}
|
||||
}
|
||||
|
||||
assembleDistributionInheritence( child, parent, childPathAdjustment, appendPaths );
|
||||
assembleDistributionInheritence( child, parent, appendPaths );
|
||||
|
||||
// issueManagement
|
||||
if ( child.getIssueManagement() == null )
|
||||
|
@ -399,8 +399,7 @@ public class DefaultModelInheritanceAssembler
|
|||
}
|
||||
}
|
||||
|
||||
private void assembleDistributionInheritence( Model child, Model parent, String childPathAdjustment,
|
||||
boolean appendPaths )
|
||||
private void assembleDistributionInheritence( Model child, Model parent, boolean appendPaths )
|
||||
{
|
||||
if ( parent.getDistributionManagement() != null )
|
||||
{
|
||||
|
@ -432,7 +431,7 @@ public class DefaultModelInheritanceAssembler
|
|||
if ( site.getUrl() != null )
|
||||
{
|
||||
site.setUrl(
|
||||
appendPath( site.getUrl(), child.getArtifactId(), childPathAdjustment, appendPaths ) );
|
||||
appendPath( site.getUrl(), child.getArtifactId(), null, appendPaths ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue