I ran into this as well. The instructions from @mben-soula worked for me –
- Go to https://s01.oss.sonatype.org/
- Go to profile
- Change the pulldown from “Summary” to “User Token”
- Click on “Access User Token”
I am using Gradle in my project, so I have all my credentials stored in a private gradle.properties file. Using the username and password values from the “Access User Token” popup, I created two new entries:
ossrhToken=...
ossrhTokenPassword=...
And finally, I updated my Gradle build script, shoud look something like this:
maven {
credentials {
username = findProperty("ossrhToken") as String
password = findProperty("ossrhTokenPassword") as String
}
}