mirror of https://github.com/apache/maven.git
[MNG-4684] distributionManagment section in profiles do not override default one (maven 3 regression)
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@946980 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
40028e7a18
commit
80903fa4d1
|
@ -345,7 +345,7 @@ public class MavenModelMerger
|
|||
if ( src != null )
|
||||
{
|
||||
DeploymentRepository tgt = target.getRepository();
|
||||
if ( tgt == null )
|
||||
if ( sourceDominant || tgt == null )
|
||||
{
|
||||
tgt = new DeploymentRepository();
|
||||
target.setRepository( tgt );
|
||||
|
@ -363,7 +363,7 @@ public class MavenModelMerger
|
|||
if ( src != null )
|
||||
{
|
||||
DeploymentRepository tgt = target.getSnapshotRepository();
|
||||
if ( tgt == null )
|
||||
if ( sourceDominant || tgt == null )
|
||||
{
|
||||
tgt = new DeploymentRepository();
|
||||
target.setSnapshotRepository( tgt );
|
||||
|
@ -380,7 +380,7 @@ public class MavenModelMerger
|
|||
if ( src != null )
|
||||
{
|
||||
Site tgt = target.getSite();
|
||||
if ( tgt == null )
|
||||
if ( sourceDominant || tgt == null )
|
||||
{
|
||||
tgt = new Site();
|
||||
target.setSite( tgt );
|
||||
|
|
Loading…
Reference in New Issue