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 abe96dc1f1..797dd25c45 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 @@ -860,7 +860,7 @@ public class PrepareReleaseMojo if ( finalName.equals( releaseModel.getArtifactId() + "-" + snapshotVersion ) ) { - releaseModel.getBuild().setFinalName( releaseModel.getArtifactId() + "-" + projectVersion ); + releaseModel.getBuild().setFinalName( null ); } else if ( finalName.indexOf( "SNAPSHOT" ) > -1 ) {