...
settings.xml
file (usually found at ~/.m2) with your Sonatype credentials, like so: Code Block |
---|
<settings> <servers> <server> <id>sonatype-nexus-snapshots</id> <username>YOUR-SONATYPE-USERNAME</username> <password>YOUR-SONATYPE-PASSWORD</password> </server> <server> <id>sonatype-nexus-staging</id> <username>YOUR-SONATYPE-USERNAME</username> <password>YOUR-SONATYPE-PASSWORD</password> </server> .. </servers> .. </settings> |
A snapshot release can be performed any time via:
No Format |
---|
mvn clean deploy
|
First, stage the release (substitute the appropriate version number below).
No Format |
---|
mvn release:clean
mvn release:prepare -Dtag=v0.0.0
# If the above fails due to missing dependencies,
# run it again after first running 'mvn install'
git pull
git checkout v0.0.0
mvn clean install
git checkout master
mvn release:perform
|
Then release the staging repository:
It will be synced to central within a few hours.