Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a settings.xml under .m2

     

    Code Block
    xml
    xml
    titlesettings.xml
    borderStylesolid
    <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>
                    <gpg.passphrase>$SSHpassphrase>$GPG_PASSPHRASE</gpg.passphrase>
                    <!-- The site.deploy.url property MUST be specified in this profile if process release in Windows environment,
                         or if your *nix user id does not match with your Apache user id --?
                    <site.deploy.url>scp://people.apache.org/home/$USERNAME/public_html/openjpa/${project.version}/staging-site</site.deploy.url>
                </properties>
            </profile>
            <profile>
                <id>gpg-passphrase</id>
                <properties>
                    <gpg.passphrase>$SSHpassphrase>$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.