Perform a dry run of the release to make sure that everything works:
mvn -DdryRun=true clean release:clean release:prepare
Perform the actual release build:
mvn clean release:clean release:prepare
Double check that you have the release credentials in your settings.xml:
<settings> <servers> <server> <id>sonatype-nexus-snapshots</id> <username>username</username> <password>password</password> </server> <server> <id>sonatype-nexus-staging</id> <username>username</username> <password>password</password> </server> </servers> </settings>
Upload the release artifacts to Sonatype:
mvn release:perform
Log into Sonatype, close and release the staging repository.
Download the released Javadocs and check them into the robolectric.github.io
repository.
Update the mailing list, Twitter account, and blog.
Sit back and have a beer.