Skip to content

Instantly share code, notes, and snippets.

@lprimak
Last active February 14, 2024 01:50
Show Gist options
  • Save lprimak/de9367c8ec6930bb60995bcc1ae739c5 to your computer and use it in GitHub Desktop.
Save lprimak/de9367c8ec6930bb60995bcc1ae739c5 to your computer and use it in GitHub Desktop.
Locally release to central
# How to do a local release
MAVEN_OPTS=-Dsettings.security=$HOME/.m2/settings-security.xml mvn -B -C release:prepare release:perform \
-Dmaven.install.skip=true -DreleaseVersion=xxx
git push origin Version-xxx
# Plain release
MAVEN_OPTS=-Dsettings.security=$HOME/.m2/settings-security.xml mvn -B -C release:prepare release:perform \
-DpushChanges=false -DlocalCheckout=true -DreleaseVersion=1 -DtagNameFormat=Version-1 \
-Dgoals="org.simplify4u.plugins:sign-maven-plugin:1.0.1:sign deploy" \
-Darguments="-Dsign.serverId=\"Flow Logix, Inc.\" -Dmaven.install.skip=true \
-DaltDeploymentRepository=flowlogix-maven-central-s01::https://s01.oss.sonatype.org/service/local/staging/deploy/maven2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment