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
- This should open the Profile tab in the main window
- In the Profile tab, select the User Token option in the select input
field
- This should navigate to the User Token view in the tab
- 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.