-
Notifications
You must be signed in to change notification settings - Fork 1
How To Publish To The Maven Repo
ryanlchandler edited this page Sep 23, 2020
·
4 revisions
1. You must have a credentials for https://oss.sonatype.org
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository/>
<interactiveMode/>
<offline/>
<pluginGroups/>
<mirrors/>
<proxies/>
<profiles/>
<activeProfiles/>
<servers>
<server>
<id>sonatype-nexus-staging</id>
<username>***</username>
<password>*****</password>
</server>
</servers>
</settings>
* make sure you update the <server><id>...</id></server>
to the one shown above
mvn help:effective-settings
* You should see the server settings you just added
mvn clean deploy -DskipTests=true
* You'll be prompted to enter the password for your private key
In sonatype click "Staging Repositories", select the highest numbered repo, and click the "Release" option.