Deploying to the Apache Snapshot Repository

Steps To Deploy on windows

  1. You need to have the following on your path (pageant, plink, pscp, psftp).
  2. You need the following set in your settings.xml file
    •      <servers>
             <server>
               <id>apache-snapshot-repository</id>
               <username>USERNAME</username>
               <password>PASSWORD</password>
               <!-- <privateKey>"LOCATION OF KEY</privateKey> -->
               <!-- not needed if using pageant -->
               <filePermissions>664</filePermissions>
               <directoryPermissions>775</directoryPermissions>
               <configuration>
                 <sshExecutable>plink</sshExecutable>
                 <scpExecutable>pscp</scpExecutable>
               </configuration>
             </server>
            </servers>
  3. After you do the upload on windows - you need to login into people.apache.org and go to the maven-snapshot-repository/project directory and check the permissions of all your projects directories. When deploying from windows there is a bug in the pscp executable in that it ignores the permissions you specify and will only give the ownder write permissions so you need to change this to allow other developers to deploy.
  4. You need to specify the following in your pom.xml file
    • 4.1 Apache-snapshot-repository
        <distributionManagement>
          <snapshotRepository>
             <id>apache-snapshot-repository</id>
             <name>Apache SNAPSHOT Repository</name>
             <url>scpexe://people.apache.org/www/people.apache.org/repo/m2-snapshot-re
      pository</url>
          </snapshotRepository>
        </distributionManagement>
      
      4.2 Deploy goal
      •             <plugin>
                      <artifactId>maven-one-plugin</artifactId>
                      <executions>
                        <execution>
                          <goals>
                            <goal>install-maven-one-repository</goal>
                            <goal>deploy-maven-one-repository</goal>
                          </goals>
                          <configuration>
                            <remoteRepositoryId>apache-snapshot-repository</remoteRepositoryId>
                            <remoteRepositoryUrl>scpexe://people.apache.org/www/people.a
        pache.org/repository</remoteRepositoryUrl>
                          </configuration>
                        </execution>
                      </executions>
                    </plugin>
                    <plugin>

Steps to deploy on Unix

You don't need to check the permissions as it works ok on unix boxes.

DeployingTo (last edited 2009-09-20 23:26:53 by localhost)