Skip to content

Instantly share code, notes, and snippets.

@LenarBad LenarBad/settings.xml
Last active Apr 16, 2019

Embed
What would you like to do?
Maven settings.xml for publishing open source projects
<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
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>sonatype-nexus-snapshots</id>
<username>your-sonatype-username</username>
<password>your-sonatype-password</password>
</server>
<server>
<id>sonatype-nexus-staging</id>
<username>your-sonatype-username</username>
<password>your-sonatype-password</password>
</server>
<server>
<id>ossrh</id>
<username>your-sonatype-username</username>
<password>your-sonatype-password</password>
</server>
<server>
<id>github</id>
<username>your-github-email</username>
<privateKey>${user.home}/.ssh/id_rsa</privateKey>
<passphrase>github-password</passphrase>
<filePermissions>664</filePermissions>
<directoryPermissions>775</directoryPermissions>
</server>
</servers>
<profiles>
<profile>
<id>gpg-passphrase</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.passphrase>your-gpg-passphrase</gpg.passphrase>
</properties>
</profile>
</profiles>
</settings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.