You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Refr Bruhl <re...@yahoo.com> on 2010/07/26 17:11:37 UTC

scp config help needed

Team

I can get maven to scp files to a remote repository. 

However when I config the server entry in the settings file it seems like the 
directory and file perms are ignored leading me to suspect the server directives 
are ignored that or I am not sure I understand how the server directive works in 
distribution Management.

Directories should be created with a perm of 2775 and files with perms of 0664. 
The umask is set to 002 on the account for the remote host. Directories are 
being created with a 755 perm and files are 644. Its almost like maven is 
overriding the users umask.

Another set of eyes is appreciated here... Thanks!




My settings file contains:


    <servers>
          <server>
              <id>ragga-release</id>
              <privateKey>${user.home}/.ssh/id_rsa</privateKey>
              <directoryPermissions>2775</directoryPermissions>
              <filePermissions>664</filePermissions>
          </server>
          <server>
              <id>ragga-snapshot</id>
              <privateKey>${user.home}/.ssh/id_rsa</privateKey>
              <directoryPermissions>2775</directoryPermissions>
              <filePermissions>664</filePermissions>
          </server>
      </servers>



    <profiles>
         <profile>
             <id>devConfig</id>
             <properties>
               <!--  Base unc path -->
                <uncPath>file:////ragga/reftr/development</uncPath>
                <flePath>file///u/refr/development</flePath>
                <scpPath>scp://refr@ragga:/maven</scpPath>
             
                 <!-- Ragga Repositories -->         
                    
<ragga.distributionManagement.site.hostpath>${scpPath}/repositories/site
                    </ragga.distributionManagement.site.hostpath>  
                 
<ragga.repository.url>${scpPath}/repositories/m2repository</ragga.repository.url>

                  
<ragga.snapshotRepository.url>${scpPath}/repositories/m2snapshotrepository</ragga.snapshotRepository.url>

                  
<ragga.distributionManagement.repository.url>${scpPath}/repositories/dmrepository</ragga.distributionManagement.repository.url>

                  
<ragga.distributionManagement.snapshotRepository.url>${scpPath}/repositories/dmsnapshotrepository</ragga.distributionManagement.snapshotRepository.url>

                  
<ragga.distributionManagement.repository.uniqueVersion>true</ragga.distributionManagement.repository.uniqueVersion>

                  
<ragga.distributionManagement.snapshotRepository.uniqueVersion>false</ragga.distributionManagement.snapshotRepository.uniqueVersion>

                  
                  
              </properties>
              
              
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>devConfig</activeProfile>
    </activeProfiles>














My pom file contains

        <repositories>
        <repository>
            <id>ragga-release</id>
            <name>Raga Repository</name>
            <url>${ragga.repository.url}</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>ragga-snapshot</id>
            <name>Ragga Snapshot Repository</name>
            <url>${ragga.snapshotRepository.url}</url>
            <releases>
                <enabled>false</enabled>
            </releases>
        </repository>
    </repositories>



      

Re: scp config help needed

Posted by Brian Fox <br...@infinity.nu>.
You should use a repo manager and deploy over http, then  you'll be on
the well-worn path.

On Mon, Jul 26, 2010 at 11:11 AM, Refr Bruhl <re...@yahoo.com> wrote:
>
> Team
>
> I can get maven to scp files to a remote repository.
>
> However when I config the server entry in the settings file it seems like the
> directory and file perms are ignored leading me to suspect the server directives
> are ignored that or I am not sure I understand how the server directive works in
> distribution Management.
>
> Directories should be created with a perm of 2775 and files with perms of 0664.
> The umask is set to 002 on the account for the remote host. Directories are
> being created with a 755 perm and files are 644. Its almost like maven is
> overriding the users umask.
>
> Another set of eyes is appreciated here... Thanks!
>
>
>
>
> My settings file contains:
>
>
>    <servers>
>          <server>
>              <id>ragga-release</id>
>              <privateKey>${user.home}/.ssh/id_rsa</privateKey>
>              <directoryPermissions>2775</directoryPermissions>
>              <filePermissions>664</filePermissions>
>          </server>
>          <server>
>              <id>ragga-snapshot</id>
>              <privateKey>${user.home}/.ssh/id_rsa</privateKey>
>              <directoryPermissions>2775</directoryPermissions>
>              <filePermissions>664</filePermissions>
>          </server>
>      </servers>
>
>
>
>    <profiles>
>         <profile>
>             <id>devConfig</id>
>             <properties>
>               <!--  Base unc path -->
>                <uncPath>file:////ragga/reftr/development</uncPath>
>                <flePath>file///u/refr/development</flePath>
>                <scpPath>scp://refr@ragga:/maven</scpPath>
>
>                 <!-- Ragga Repositories -->
>
> <ragga.distributionManagement.site.hostpath>${scpPath}/repositories/site
>                    </ragga.distributionManagement.site.hostpath>
>
> <ragga.repository.url>${scpPath}/repositories/m2repository</ragga.repository.url>
>
>
> <ragga.snapshotRepository.url>${scpPath}/repositories/m2snapshotrepository</ragga.snapshotRepository.url>
>
>
> <ragga.distributionManagement.repository.url>${scpPath}/repositories/dmrepository</ragga.distributionManagement.repository.url>
>
>
> <ragga.distributionManagement.snapshotRepository.url>${scpPath}/repositories/dmsnapshotrepository</ragga.distributionManagement.snapshotRepository.url>
>
>
> <ragga.distributionManagement.repository.uniqueVersion>true</ragga.distributionManagement.repository.uniqueVersion>
>
>
> <ragga.distributionManagement.snapshotRepository.uniqueVersion>false</ragga.distributionManagement.snapshotRepository.uniqueVersion>
>
>
>
>              </properties>
>
>
>        </profile>
>    </profiles>
>    <activeProfiles>
>        <activeProfile>devConfig</activeProfile>
>    </activeProfiles>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> My pom file contains
>
>        <repositories>
>        <repository>
>            <id>ragga-release</id>
>            <name>Raga Repository</name>
>            <url>${ragga.repository.url}</url>
>            <snapshots>
>                <enabled>false</enabled>
>            </snapshots>
>        </repository>
>        <repository>
>            <id>ragga-snapshot</id>
>            <name>Ragga Snapshot Repository</name>
>            <url>${ragga.snapshotRepository.url}</url>
>            <releases>
>                <enabled>false</enabled>
>            </releases>
>        </repository>
>    </repositories>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org