diff --git a/src/main/java/se/bjurr/gitchangelog/plugin/SemanticVersionMojo.java b/src/main/java/se/bjurr/gitchangelog/plugin/SemanticVersionMojo.java index 787abac..ebc5baa 100644 --- a/src/main/java/se/bjurr/gitchangelog/plugin/SemanticVersionMojo.java +++ b/src/main/java/se/bjurr/gitchangelog/plugin/SemanticVersionMojo.java @@ -18,6 +18,9 @@ public class SemanticVersionMojo extends AbstractMojo { @Component private MavenProject project; + @Parameter(property = "skip", required = false) + private Boolean skip; + @Parameter( property = "updatePomWithCurrentSemanticVersionSuffixSnapshot", required = false, @@ -44,6 +47,11 @@ public class SemanticVersionMojo extends AbstractMojo { @Override public void execute() throws MojoExecutionException { + if (this.skip != null && this.skip == true) { + this.getLog().info("Skipping semantic version"); + return; + } + try { final GitChangelogApi gitChangelogApiBuilder = gitChangelogApiBuilder(); if (this.isSupplied(this.semanticMajorVersionPattern)) {