Clean build
mvn clean install
For Maven/Sonatype deployment docs, see here.
-
To deploy via Maven, make sure Maven's
settings.xml
contains<server> <id>sonatype-nexus-snapshots</id> <username>oberstet</username> <password>mypassword</password> </server> <server> <id>sonatype-nexus-staging</id> <username>oberstet</username> <password>mypassword</password> </server>
in the
servers
section. -
Check the effective settings using
mvn help:effective-settings
Clean build a snapshot using
mvn clean deploy
Prepare the release
mvn release:clean
mvn release:prepare
Publish the release
mvn release:perform