Last active
April 25, 2018 07:45
-
-
Save marcocaboni/3046060 to your computer and use it in GitHub Desktop.
Maven tips
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Set new project version | |
| mvn versions:set -DgenerateBackupPoms=false -DnewVersion=1.41.1-SNAPSHOT | |
| # Set new project version | |
| mvn release:update-versions -DdevelopmentVersion=1.41.1-SNAPSHOT -B | |
| # Show dependency tree detail (groupId and artifactId can be *) | |
| mvn dependency:tree -Dverbose -Dincludes=groupId:artifactId | |
| # Remove an artifact from the local maven repo | |
| mvn maven-dependency:purge-local-repository -N -DactTransitively=false -DmanualInclude=it.openmindonline.xdm:xdm.commons.client.formulaeditor:3.4.21 | |
| # Specifying the version of a plugin | |
| mvn org.codehaus.mojo:versions-maven-plugin:2.2:set ... | |
| mvn org.apache.maven.plugins:maven-dependency-plugin:2.6:purge-local-repository ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment