[ https://issues.apache.org/jira/browse/MDEPLOY-9?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17965600#comment-17965600 ]
Olivier Lamy commented on MDEPLOY-9: ------------------------------------ This project has moved from Jira to GitHub Issues. This issue was migrated to [apache/maven-deploy-plugin#217|https://github.com/apache/maven-deploy-plugin/issues/217]. > Failed to deploy to a remote repository > --------------------------------------- > > Key: MDEPLOY-9 > URL: https://issues.apache.org/jira/browse/MDEPLOY-9 > Project: Maven Deploy Plugin (Moved to GitHub Issues) > Issue Type: Bug > Environment: Linux Fedora, 32bit, Maven2 > Reporter: Nick Parmelee > Assignee: Brett Porter > Priority: Major > > 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 was sent by Atlassian Jira (v8.20.10#820010)