From 07ec2000bf44382bdf95a22120742ab2c3a3eccf Mon Sep 17 00:00:00 2001 From: Libor Rysavy Date: Sun, 7 Feb 2016 21:33:17 +0100 Subject: [PATCH] Setup Maven Release Plugin --- README.md | 10 ++++++++++ pom.xml | 9 ++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5efec6e..508fe9d 100644 --- a/README.md +++ b/README.md @@ -38,3 +38,13 @@ mvn clean package assembly:single ``` Resulting archive: `target/GlacierUploader-*-jar-with-dependencies.jar` + +##### Perform release in SCM (GIT) +``` +mvn release:prepare +``` + +This will do some checks, change the version in the POM to a new version (you will be prompted for the versions to use), +commit POM, tag the code in the SCM, bump the version in the POM and commit this POM. + +One can first simulate the release (no commits) using parameter `-DdryRun=true`. \ No newline at end of file diff --git a/pom.xml b/pom.xml index 35680ab..235aad7 100644 --- a/pom.xml +++ b/pom.xml @@ -25,7 +25,9 @@ - git@github.com:brianmcmichael/SAGU.git + scm:git:https://github.com/brianmcmichael/SAGU.git + scm:git:git@github.com:brianmcmichael/SAGU.git + scm:git:git@github.com:brianmcmichael/SAGU.git @@ -88,6 +90,11 @@ + + org.apache.maven.plugins + maven-release-plugin + 2.5.3 +