Generating a Portal Token for Publishing⚓︎
OSSRH Publishers
This documentation is for publishing via the Central Publisher Portal. For publishing via OSSRH, please see the OSSRH token documentation.
You must use a user token to publish artifacts to the Central Repository via the Central Publisher Portal.
- Log in to the Central Publisher Portal and navigate to your account at https://central.sonatype.com/account
- Press the Generate User Token button
- Confirm the generation (note: this will invalidate an exiting token)
- Save the generated credentials for use in your publishing setup
Token access
Tokens cannot be retrieved once the modal closes, so it is a publisher's responsibility to maintain control of the token or generate a replacement as needed.