Skip to content

Instantly share code, notes, and snippets.

@gadieichhorn
Created March 9, 2017 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gadieichhorn/6aaace76237eb2f6478ee44d5e9fd5f3 to your computer and use it in GitHub Desktop.
Save gadieichhorn/6aaace76237eb2f6478ee44d5e9fd5f3 to your computer and use it in GitHub Desktop.
Update version of projects
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.effectus</groupId>
<artifactId>effectus</artifactId>
<version>0.0.13-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Effectus.io</name>
<profiles>
<profile>
<id>all</id>
<modules>
<module>effectus-parent</module>
<module>effectus-dependencies</module>
<module>effectus-core</module>
<module>effectus-demo</module>
<module>effectus-data</module>
<module>effectus-web</module>
</modules>
</profile>
</profiles>
<build>
<!-- To define the plugin version in your parent POM -->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.3</version>
</plugin>
</plugins>
</pluginManagement>
<!-- To use the plugin goals in your POM or parent POM -->
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.3</version>
</plugin>
</plugins>
</build>
<!-- To use the report goals in your POM or parent POM -->
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.3</version>
</plugin>
</plugins>
</reporting>
</project>
@gadieichhorn
Copy link
Author

to execute rolling nested version update run

mvn versions:set -D newVersion=0.0.13-SNAPSHOT -f pom-all.xml -P all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment