You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2006/01/04 06:23:13 UTC

[jira] Closed: (MDEPLOY-9) Failed to deploy to a remote repository

     [ http://jira.codehaus.org/browse/MDEPLOY-9?page=all ]
     
Brett Porter closed MDEPLOY-9:
------------------------------

     Assign To: Brett Porter
    Resolution: Won't Fix

it does read settings.xml, but if you are root you probably didn't have it, or you had the id's misconfigured. Not a bug.

> Failed to deploy to a remote repository
> ---------------------------------------
>
>          Key: MDEPLOY-9
>          URL: http://jira.codehaus.org/browse/MDEPLOY-9
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>  Environment: Linux Fedora, 32bit, Maven2
>     Reporter: Nic
>     Assignee: Brett Porter

>
>
> It seems that 'mvn deploy' doesn't work when deploying to a remoty repository using scp/scpexe protocol
> pom.xml:
> ...
> <distributionManagement>
>     <repository>
>       <id>corp-repository</id>
>       <url>scpexe://user@192.168.45.10/var/maven2/repos</url>
>     </repository>
>     <site>
>       <id>website</id>
>       <url>scpexe://user@192.168.45.10/usr/local/apache2/htdocs/projects/proj1/</url>
>     </site>
> </distributionManagement>
> ...
> settings.xml:
>   <servers>
>     <server>
>        <id>webserver</id>
>        <username>user</username>
>        <privateKey>~/.ssh/id_rsa</privateKey>
>     </server>
>     <server>
>        <id>corp-repository</id>
>        <username>user</username>
>        <privateKey>~/.ssh/id_rsa</privateKey>
>      </server>
>   </servers>
> When I issue the command 'mvn site:deploy' - it works
> When I issue the command 'mvn deploy' - it doesn't work. The reason is: Exit code 255 - Permission denied (publickey,password).
> When I issue the command 'scp a.file user@192.168.45.10:/var/maven2/repos' - it works
> I have no idea how to make 'mvn deploy' work. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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