Show the latest update version of maven dependencies.
The updates
goal prints all dependencies to console and creates a maven-updates.json
file for all maven modules.
mvn com.github.ccguyka:show-updates-maven-plugin:updates
name | default | description |
---|---|---|
excludes |
alpha,beta,SNAPSHOT |
Dependency key words to be excluded from result as comma separated list |
versions |
latest |
Show either latest (patch, minor and major versions), major, minor or patch version updates. |
This is how the output will look like. In this case the guava-testlib
module of guava v27.0
[INFO] -------------------< com.google.guava:guava-testlib >------------------- [INFO] Building Guava Testing Library 27.0-jre [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- show-updates-maven-plugin:updates (default-cli) @ guava-testlib --- [INFO] Available parent updates: [INFO] com.google.guava:guava-parent ... 27.0-jre -> 27.0.1-jre, 27.1-jre, 29.0-jre [INFO] Available dependency updates: [INFO] org.checkerframework:checker-qual ... 2.5.2 -> 2.5.8, 2.11.1, 3.3.0 [INFO] com.google.errorprone:error_prone_annotations ... 2.2.0 -> 2.3.4 [INFO] com.google.truth:truth ... 0.42 -> 0.46, 1.0.1 [INFO] com.google.j2objc:j2objc-annotations ... 1.1 -> 1.3 [INFO] junit:junit ... 4.12 -> 4.13 [INFO] Available plugin updates: [INFO] org.codehaus.mojo:animal-sniffer-maven-plugin ... 1.17 -> 1.18
The aggregate
goal uses the created maven-updates.json
of the updates
goal and combines them into one aggregated-maven-updates.json
within the root module.
mvn com.github.ccguyka:show-updates-maven-plugin:aggregate
The send-slack-message
goal will send the report to given slack webhook.
mvn com.github.ccguyka:show-updates-maven-plugin:send-slack-message -Dtoken=<slack-webhook>
Based on official documentation
mvn release:clean release:prepare release:perform -Prelease