[jira] Commented: (MNG-1764) Failed to deploy to a remote repository
[ 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: > ... > > > corp-repository > scpexe://[EMAIL PROTECTED]/var/maven2/repos > > > website > scpexe://[EMAIL > PROTECTED]/usr/local/apache2/htdocs/projects/proj1/ > > > ... > settings.xml: > > >webserver >user >~/.ssh/id_rsa > > >corp-repository >user >~/.ssh/id_rsa > > > 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]
[jira] Commented: (MNG-1764) Failed to deploy to a remote repository
[ http://jira.codehaus.org/browse/MNG-1764?page=comments#action_53040 ] Nic commented on MNG-1764: -- And I did the same thing on my local machine from user root to user root. I've got the same result. (Exit code 255 - Permission denied (publickey,gssapi-with-mic,password).) As I understand, the root user can do everyting on the system, but the problem doesn't disappeared. > 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: > ... > > > corp-repository > scpexe://[EMAIL PROTECTED]/var/maven2/repos > > > website > scpexe://[EMAIL > PROTECTED]/usr/local/apache2/htdocs/projects/proj1/ > > > ... > settings.xml: > > >webserver >user >~/.ssh/id_rsa > > >corp-repository >user >~/.ssh/id_rsa > > > 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]
[jira] Commented: (MNG-1764) Failed to deploy to a remote repository
[ http://jira.codehaus.org/browse/MNG-1764?page=comments#action_52993 ] Nic commented on MNG-1764: -- Sorry, i was mistaken. It's correct: [EMAIL PROTECTED]:/var/maven2/repo$ mkdir -p uk/co/netdev/ntf/ntf/1.0/ntf-1.0.pom > 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: > ... > > > corp-repository > scpexe://[EMAIL PROTECTED]/var/maven2/repos > > > website > scpexe://[EMAIL > PROTECTED]/usr/local/apache2/htdocs/projects/proj1/ > > > ... > settings.xml: > > >webserver >user >~/.ssh/id_rsa > > >corp-repository >user >~/.ssh/id_rsa > > > 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]
[jira] Commented: (MNG-1764) Failed to deploy to a remote repository
[ http://jira.codehaus.org/browse/MNG-1764?page=comments#action_52992 ] Nic commented on MNG-1764: -- command line: [EMAIL PROTECTED] ntf]# mvn -X -N deploy output: + Error stacktraces are turned on. [DEBUG] Building Maven user-level plugin registry from: '/root/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/usr/local/maven-2.0/conf/plugin-registry.xml' [INFO] Scanning for projects... [INFO] Reactor build order: ... [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.0:deploy' --> [DEBUG] (f) artifact = uk.co.netdev.ntf:ntf:pom:1.0 [DEBUG] (f) attachedArtifacts = [] [DEBUG] (f) buildDirectory = /root/svn/ntf/target [DEBUG] (f) deploymentRepository = [netdev-repository] -> scpexe://192.168.45.10/var/maven2/netdev [DEBUG] (f) finalName = ntf-1.0 [DEBUG] (f) localRepository = [local] -> file:///var/maven2/local [DEBUG] (f) packaging = pom [DEBUG] (f) pomFile = /root/svn/ntf/pom.xml [DEBUG] (f) updateReleaseInfo = false [DEBUG] -- end configuration -- [INFO] [deploy:deploy] [DEBUG] not adding permissions to wagon connection Uploading: scpexe://192.168.45.10/var/maven2/netdev/uk/co/netdev/ntf/ntf/1.0/ntf-1.0.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error deploying artifact: Error executing command for transfer Exit code 255 - Permission denied (publickey,password). [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact: Error executing command for transfer at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:544) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying artifact: Error executing command for transfer at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:159) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519) ... 16 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: Error executing command for transfer at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:91) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:138) ... 18 more Caused by: org.apache.maven.wagon.TransferFailedException: Error executing command for transfer at org.apache.maven.wagon.providers.sshext.ScpExternalWagon.put(ScpExternalWagon.java:327) at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:180) at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:109) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:77) ... 19 more Caused by: org.apache.maven.wagon.CommandExecutionException: Exit code 255 - Permission denied (publickey,password). at org.apache.maven.wagon.providers.sshext.ScpExternalWagon.executeCommand(ScpExternalWagon.java:220) at org.apache.maven.wagon.providers.sshext.ScpExternalWagon.put(ScpExternalWagon.java:323) ... 22 more Th
[jira] Created: (MNG-1764) Failed to deploy to a remote repository
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: ... corp-repository scpexe://[EMAIL PROTECTED]/var/maven2/repos website scpexe://[EMAIL PROTECTED]/usr/local/apache2/htdocs/projects/proj1/ ... settings.xml: webserver user ~/.ssh/id_rsa corp-repository user ~/.ssh/id_rsa 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]