diff --git a/tycho-versions-plugin/src/main/java/org/eclipse/tycho/versions/VersionBumpBuildListener.java b/tycho-versions-plugin/src/main/java/org/eclipse/tycho/versions/VersionBumpBuildListener.java index 9f5a6514c4..c6c352d38a 100644 --- a/tycho-versions-plugin/src/main/java/org/eclipse/tycho/versions/VersionBumpBuildListener.java +++ b/tycho-versions-plugin/src/main/java/org/eclipse/tycho/versions/VersionBumpBuildListener.java @@ -80,7 +80,7 @@ public void buildEnded(MavenSession session) { .orElseGet(() -> Versions.incrementVersion(currentVersion, VersionBumpMojo.getIncrement(session, project, projectHelper))); boolean isSnapshot = currentVersion.endsWith(TychoConstants.SUFFIX_SNAPSHOT); - if (isSnapshot) { + if (isSnapshot && !newVersion.endsWith(TychoConstants.SUFFIX_SNAPSHOT)) { newVersion += TychoConstants.SUFFIX_SNAPSHOT; } logger.info(project.getId() + " requires a version bump from " + currentVersion + " => "