I am both new to maven and the maven release plugin but what I am trying to achieve here is simple. I am able to use the maven release plugin using the command mvn release:prepare just fine however I don't want it to execute running the the entire build before bumping up the pom. I just want it to bump up the pom when I use it. How do I disable it from executing that goal?
The maven release plugin executes the goals specified in preparationGoals property, which are, by default, "clean verify".
Override the value of this property either through the plugin configuration:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<preparationGoals></preparationGoals>
<!-- your other configuration -->
</configuration>
</plugin>
or on the command line:
mvn release:prepare -DpreparationGoals= ...
to specify whatever other goals you might want to execute instead. For example, setting it to initialize or to an empty string all together.
You meant, you want to skip the "build" of the project when run the prepare goal?
If so, as far i know, it cannot be done, as the prepare is a mandatory step for a prepare. In fact the prepare check
From the official documentation (Link): Preparing a release goes through the following release phases:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With