Run Additional Goals Before Commit

To run additional goals after release preparation (tag) but before committing with new -SNAPSHOT version, specify them using the preparationGoals property.

  1. <project>
  2. [...]
  3. <build>
  4. [...]
  5. <plugins>
  6. [...]
  7. <plugin>
  8. <groupId>org.apache.maven.plugins</groupId>
  9. <artifactId>maven-release-plugin</artifactId>
  10. <version>3.1.1</version>
  11. <configuration>
  12. <preparationGoals>clean verify</preparationGoals>
  13. </configuration>
  14. </plugin>
  15. [...]
  16. </plugins>
  17. [...]
  18. </build>
  19. [...]
  20. </project>