diff --git a/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java b/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java index 94de3c3bda..cbc051ae65 100644 --- a/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java +++ b/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java @@ -983,6 +983,7 @@ public class PrepareReleaseMojo modelToFix.setGroupId( correctModel.getGroupId() ); modelToFix.setPackaging( correctModel.getPackaging() ); modelToFix.setModules( cloneModules( correctModel.getModules() ) ); + modelToFix.setDistributionManagement( correctModel.getDistributionManagement() ); } private static List cloneModules( List modules )