Integrating Maven Central

To authenticate and integrate Maven Central within your Java SDK, you’ll need to create a Maven Central User Token and add it to your repository.

Creating a Maven Central User Token

1

Log In

Log into the Nexus Repository Manager web interface where you host your project. This is likely oss.sonatype.org or s01.oss.sonatype.org.

If you don’t have an existing Nexus Repository Manager, you can log in or create a Maven Central account here

3

Generate User Token

  • Click on Generate User Token.
Save your User Token

Be sure to save the generated username and password - they won’t be accessible after you leave the page.

Adding User Tokens to your GitHub repository

Using GitLab? Follow these steps.

1

Open Repository

Open your Fern repository in GitHub.

3

Add Secrets

You’ll need to store two repository secrets, one for the username and one for the password.

Maven Central User Token

For each, select New repository secret. Name your secret (we recommend MAVEN_USERNAME and MAVEN_PASSWORD, respectively), add the corresponding value, and click Add secret.