<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"> <activeProfiles> <activeProfile>gpg-settings</activeProfile> </activeProfiles> <profiles> <profile> <id>gpg-settings</id> <properties> <!-- this key will be used by the maven gpg plugin during release --> <gpg.keyname>your-gpg-key</gpg.keyname> <gpg.passphrase>your-passphrase</gpg.passphrase> </properties> </profile> </profiles> <servers> <!-- to upload to sonatype maven central. See https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide --> <server> <id>sonatype-nexus-snapshots</id> <username>your-sonatype-jira-login</username> <password>your-sonatype-jira-password</password> </server> <server> <id>sonatype-nexus-staging</id> <username>your-sonatype-jira-login</username> <password>your-sonatype-jira-password</password> </server> <server> <id>pmd-repo</id> <username>your-sf-login</username> <password>your-sf-pwd</password> <!-- or use instead of the password your private key with optional passphrase <privateKey>${user.home}/.ssh/id_dsa</privateKey> <passphrase>some_passphrase</passphrase> --> </server> <server> <id>pmd-site</id> <username>your-sf-login</username> <password>your-sf-pwd</password> <!-- or use instead of the password your private key with optional passphrase <privateKey>${user.home}/.ssh/id_dsa</privateKey> <passphrase>some_passphrase</passphrase> --> </server> <server> <id>pmd-snapshot-repo</id> <username>your-sf-login</username> <password>your-sf-pwd</password> <!-- or use instead of the password your private key with optional passphrase <privateKey>${user.home}/.ssh/id_dsa</privateKey> <passphrase>some_passphrase</passphrase> --> </server> <server> <id>pmd-snapshot-site</id> <username>your-sf-login</username> <password>your-sf-pwd</password> <!-- or use instead of the password your private key with optional passphrase <privateKey>${user.home}/.ssh/id_dsa</privateKey> <passphrase>some_passphrase</passphrase> --> </server> </servers> </settings>