incubator-yoko-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Incubator-yoko Wiki] Update of "DeployingTo" by edellnolan
Date Tue, 17 Oct 2006 12:49:16 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Incubator-yoko Wiki" for change notification.

The following page has been changed by edellnolan:
http://wiki.apache.org/incubator-yoko/DeployingTo

New page:
== 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.

Mime
View raw message