[ http://jira.codehaus.org/browse/MNG-1764?page=comments#action_53056 ] 

Nic commented on MNG-1764:
--------------------------

I found the problem. 

The maven_deploy_plugin doesn't read the setting.xml file, so when I issue the 
command 'mvn deploy' from the root user, it tries to deploy artifacts using the 
same user on a remote server. 

In my situation, I issued the deploying process from the root user but I can't 
connect to the remote server via SSH using the root account. (security).

> Failed to deploy to a remote repository
> ---------------------------------------
>
>          Key: MNG-1764
>          URL: http://jira.codehaus.org/browse/MNG-1764
>      Project: Maven 2
>         Type: Bug

>   Components: maven-deploy-plugin
>     Versions: 2.0
>  Environment: Linux Fedora, 32bit, Maven2
>     Reporter: Nic

>
>
> 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://[EMAIL PROTECTED]/var/maven2/repos</url>
>     </repository>
>     <site>
>       <id>website</id>
>       <url>scpexe://[EMAIL 
> PROTECTED]/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 [EMAIL PROTECTED]:/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to