mvn license:check
mvn formatter:validate
mvn formatter:format
mvn license:format
Replace the <snapshotRepository>
with a local file path like:
<distributionManagement>
<snapshotRepository>
<id>local</id>
<name>local</name>
<url>file:../local_repo/deploy</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-staging</id>
<name>Sonatype Nexus release repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
and run: mvn clean deploy
mvn clean deploy
- Adapt and Update CHANGELOG.md, README.md
- Commit
- make sure you have GPG and a personal key (otherwise the maven-gpg-plugin fails with error 127)
- make sure you have added an personal ssh-key to your GitHub account (otherwise the maven-release-plugin will fail after prepare-commit)
- Release:
(check existing tags) mvn clean test mvn release:clean release:prepare -Darguments=-Dgpg.passphrase=thephrase -Psonatype-oss-release mvn release:perform -Psonatype-oss-release
- Update Wiki with CHANGELOG.md and new Javadoc
- Update CHANGELOG.md and README.md on develop branch