diff --git a/maven-project/src/main/java/org/apache/maven/project/inheritance/DefaultModelInheritanceAssembler.java b/maven-project/src/main/java/org/apache/maven/project/inheritance/DefaultModelInheritanceAssembler.java index 531a95191d..1ee4bdb1ee 100644 --- a/maven-project/src/main/java/org/apache/maven/project/inheritance/DefaultModelInheritanceAssembler.java +++ b/maven-project/src/main/java/org/apache/maven/project/inheritance/DefaultModelInheritanceAssembler.java @@ -19,14 +19,13 @@ import org.apache.maven.model.Build; import org.apache.maven.model.Dependency; import org.apache.maven.model.DependencyManagement; +import org.apache.maven.model.DeploymentRepository; import org.apache.maven.model.DistributionManagement; import org.apache.maven.model.Model; import org.apache.maven.model.PluginManagement; import org.apache.maven.model.Reporting; -import org.apache.maven.model.Repository; import org.apache.maven.model.Scm; import org.apache.maven.model.Site; -import org.apache.maven.model.DeploymentRepository; import org.apache.maven.project.ModelUtils; import org.codehaus.plexus.util.StringUtils; @@ -484,6 +483,8 @@ private void assembleDistributionInheritence( Model child, Model parent, boolean repository.setName( parentDistMgmt.getRepository().getName() ); repository.setUrl( parentDistMgmt.getRepository().getUrl() ); + + repository.setUniqueVersion( parentDistMgmt.getRepository().isUniqueVersion() ); } } @@ -500,6 +501,8 @@ private void assembleDistributionInheritence( Model child, Model parent, boolean repository.setName( parentDistMgmt.getSnapshotRepository().getName() ); repository.setUrl( parentDistMgmt.getSnapshotRepository().getUrl() ); + + repository.setUniqueVersion( parentDistMgmt.getRepository().isUniqueVersion() ); } } }