Generate a Token on NXRM servers⚓︎
Tokens for publishing
Previously, tokens were the encouraged solution for publishing to OSSRH, but
using your username/password was allowed. As a part of the deprecation of
issues.sonatype.org
,
tokens will eventually be required and username/password authentication will
stop working.
You must use a generate a token and use it instead of your username/password to publish artifacts to the Central Repository.
- Go to the NXRM web interface where your project is hosted
- Select the Profile option in the yellow top right dropdown menu
- Select the User Token option in the dropdown
- Click the Access User Token button (you will need to reenter your credentials)
- You can now use that generated token in your publishing setup
<server> <id>${server}</id> <username>tokenuser</username> <password>tokenkey-dlghnfgh8+4LfXmg5Hsd8jd</password> </server>
More detailed information of the token's usage can be found here.