this repo example has been published here
./mvnw
java -jar app/target/*-all.jar
./mvnw -P publish-locally
./mvnw release:clean release:prepare release:perform \
-Darguments="-DskipTests -Dmaven.deploy.skip=true -Pmaven-release-locally,publish-locally" \
-Pmaven-release-locally,publish-locally -s ./settings.xml \
-DgenerateBackupPoms=false \
-Dresume=false \
-DdryRun=false \
-DskipTests \
--batch-mode
#if something goes wrong:
#./mvnw release:rollback -s ./settings.xml
./mvnw clean
./mvnw -P publish-locally
# create manually on your github repository branch: maven
./mvnw -P publish-to-github -pl :publish-maven-project-to-jcenter -s settings.xml
- prepare settings.xml file:
cp -Rf settings.template.xml settings.xml
- update it accordingly: //servers/server/github
- run commands:
./mvnw clean package ./mvnw -P upload-github-release -pl :publish-maven-project-to-jcenter -s settings.xml
by using maven-release-plugin
- update settings.xml file accordingly //servers/server/bintray-daggerok-repo username => bintray API key
- first time open https://bintray.com/daggerok/daggerok and create new package, ie: publish-maven-project-to-jcenter
- once repository was created, prepare / perform release using maven-release-plugin
./mvnw release:clean release:prepare release:perform \ -DgenerateBackupPoms=false \ -Darguments="-DskipTests" \ -Pmaven-release-jcenter \ -s ./settings.xml \ -Dresume=false \ -DdryRun=false \ -DskipTests \ --batch-mode #if something goes wrong: #./mvnw release:rollback -s ./settings.xml
links