Skip to content

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.

  1. Go to the NXRM web interface where your project is hosted
  2. Select the Profile option in the yellow top right dropdown menu
  3. Select the User Token option in the dropdown
  4. Click the Access User Token button (you will need to reenter your credentials) token
  5. 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.