Skip to content

Instantly share code, notes, and snippets.

@tyagiakhilesh
Last active December 8, 2022 09:09
Show Gist options
  • Save tyagiakhilesh/d5ec8f6ea2449f014019217260a01987 to your computer and use it in GitHub Desktop.
Save tyagiakhilesh/d5ec8f6ea2449f014019217260a01987 to your computer and use it in GitHub Desktop.
Maven artifcact release steps
  1. Add section to your pom with option specified.
  2. Add maven release plugin to your pom.
  3. mvn -B release:prepare -Dtag=relv2.0.6
  4. mvn release:perform -Darguments="-Dmaven.javadoc.skip=true"

In above, last step : recently faced the issue that peform was getting stuck on checkout in target/checkout directory. So I followed this advise here

Setting the version:

mvn versions:set -DnewVersion=<version>

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