Skip to content

Instantly share code, notes, and snippets.

@marcocaboni
Last active April 25, 2018 07:45
Show Gist options
  • Select an option

  • Save marcocaboni/3046060 to your computer and use it in GitHub Desktop.

Select an option

Save marcocaboni/3046060 to your computer and use it in GitHub Desktop.
Maven tips
# 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