[ 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
That's all.
Now, what I did on the [EMAIL PROTECTED] server:
[EMAIL PROTECTED]:/var/maven2/repo$ mkdir -p
/uk/co/netdev/ntf/ntf/1.0/ntf-1.0.pom
and I've got any error.
When I did the same things using mvn site:deploy, I noticed the followind debug
string
[INFO] [site:deploy]
Using private key: /root/.ssh/id_rsa
And it seems to me that maven-deploy-plugin doesn't read my settings.xml file.
In the same file where pom.xml file is.
> 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]