The project is released with the normal Maven release support.
- Get authorization to Sonatype and make sure your GPG key is setup and registered per instructions here: https://github.com/mybatis/committers-stuff/wiki/Release-Process
- Make sure your SSH key is setup at GitHub
- Create a Maven Central Publishing token if you don't have one, or it is expired:
- Logon to https://central.sonatype.com/
- Go to Profile, View User Tokens
- Generate a new token if you need to and add it to the maven settings file
- Make sure your Maven
settings.xmlfile is correct. At a minimum, it should contain the following:<settings> <servers> <server> <id>gh-pages-scm</id> <configuration> <scmVersionType>branch</scmVersionType> <scmVersion>gh-pages</scmVersion> </configuration> </server> <server> <id>central</id> <username>[tokenized user name]</username> <password>[tokenized password]</password> </server> </servers> </settings>
- Update the release date in the CHANGELOG
- Clone the main repo (with ssh), checkout the master branch
- If you are on a Unix or Mac, then setup GPG to use the terminal when asking for your password:
export GPG_TTY=$(tty) ./mvnw release:prepare./mvnw release:perform- Logon to https://central.sonatype.com/
- Go to Profile->View Deployments
- Verify everything looks OK
- Publish the deployment
The site will publish automatically as part of the release process. But you can do it independently too.
The following command will do a dry run of the site publishing process - you can use it to see what will be published:
./mvnw clean site scm-publish:publish-scm -Dscmpublish.dryRun=trueThis command will publish the site:
./mvnw clean site scm-publish:publish-scmIf you run into issues with the publishing process, then resetting the working directory can help:
cd ~
sudo rm -r maven-sitesDraft a new release on GitHub and tie it to the new release tag.