How-To Release JWebUnit with Maven
This todo list if a reminder for JWebUnit release manager.
Last checks and updates
- Ensure your repository is up to date by running: git update
- Edit src/changes/changes.xml to set the release date instead of "unknow"
- Update JWebUnit latest version in src/site/xdoc/index.xml, src/site/xdoc/installation.xml, jwebunit-htmlunit-plugin/src/site/xdoc/index.xml, jwebunit-webdriver-plugin/src/site/xdoc/index.xml
- Commit the changes
Now check that in your settings.xml (usually in ~/.m2) the JWebUnit server details are correct:
<server> <id>github</id> <password>oauth token</password> </server> <server> <id>sonatype-nexus</id> <username>henryju</username> <password>YYYYYYYYYY</password> </server>
Preparing the release (tag and update pom)
This process is automatically done by maven-release-plugin.
mvn release:prepare
Now the tag is done in Git and the master is ready for next developments. It's time to actually do the release.
Perform the release (deploy artifacts and site)
The release process is done by maven-release-plugin:
mvn release:perform -Darguments="-Dgpg.passphrase=XXXXXXXXXX"
This will automatically checkout the tag from Git in target/checkout folder then run mvn deploy site site:stage. Artifacts will be staged in http://oss.sonatype.org. Site will also be staged.
Now connect to http://oss.sonatype.org and go to Staging Repositories section. There you can close and release the repository. If everything is fine the artifacts will be synced to Maven central.
To finalize site deployment go to target/checkout and run mvn scm-publish:publish-scm