THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Create a settings.xml under .m2
Code Block xml xml title settings.xml borderStyle solidxml <settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <servers> <!-- SCP settings for people.apache.org --> <server> <id>people.apache.org</id> <username>$USERNAME</username> <privateKey>$PATH_TO_PRIVATE_KEY</privateKey> <passphrase>$SSH_PASSPHRASE</passphrase> <directoryPermissions>775</directoryPermissions> <filePermissions>644</filePermissions> <!-- following is only for Windows only <configuration> <sshExecutable>plink</sshExecutable> <scpExecutable>pscp</scpExecutable> <scpArgs>-2Bp</scpArgs> <sshArgs>-2</sshArgs> </configuration> --> </server> <!-- ASF Nexus settings --> <server> <id>apache.snapshots.https</id> <username>$USERNAME</username> <password>$APACHE_LDAP_PWD</password> </server> <server> <id>apache.releases.https</id> <username>$USERNAME</username> <password>$APACHE_LDAP_PWD</password> </server> </servers> <profiles> <profile> <id>apache-release</id> <properties> <site.deploy.user.name>$USERNAME</site.deploy.user.name> <gpg.passphrase>$GPG_PASSPHRASE</gpg.passphrase> </properties> </profile> <profile> <id>gpg-passphrase</id> <properties> <gpg.passphrase>$GPG_PASSPHRASE</gpg.passphrase> </properties> </profile> </profiles> </settings>
Info $USERNAME
is the remote username on people.apache.org, not your local userid.$PATH_TO_PRIVATE_KEY
is the path to the private key generated for ssh. E.g. /home/yourLocalUserId/.ssh/id_rsa. For Windows' cygwin users, you will need to enter the full cygwin path: /cygdrive/c/cygwin/home/yourLocalUserId/.ssh/id_rsa.$SSH_PASSPHRASE
for the supplied$PATH_TO_PRIVATE_KEY
. If you don't use this in your settings.xml file, then you will be prompted for it during the Release processing.$GPG_PASSPHRASE
is pass phase for the GPG key.$APACHE_LDAP_PWD
is your Apache LDAP password, which is shared between SVN and password login for people.apache.org.