You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ray Ward <wa...@gmail.com> on 2006/03/09 23:16:19 UTC

[m202] Error trying to deploy with scp

I'm trying to test deploying with scp and get an error about permissions.
(The error is at the end of this email.)

I read the mini-guide docs on deploying
http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html and
Security and Deployment Settings
http://maven.apache.org/guides/mini/guide-deployment-security-settings.html.

I also read the settings.xml file in the $MAVEN_HOME/conf/settings.xml.

I set up my top-level pom.xml:
        <distributionManagement>
                <repository>
                        <id>ssh-repository</id>
                        <url>scpexe://<IpAddress>/home/rward/tmp</url>
                </repository>
        </distributionManagement>
        <build>
                <extensions>
                        <extension>
                                <groupId>org.apache.maven.wagon</groupId>
                                <artifactId>wagon-ssh</artifactId>
                                <version>1.0-alpha-7</version>
                        </extension>
                </extensions>
        </build>


And the ~/.m2/settings.xml
        <servers>
                <server>
                        <id><MyIpAddress></id>
                        <username>rward</username>
                        <password><MyPassword></password>
                </server>
        </servers>

Any ideas what I could be doing wrong?

Ray

Error messages follow:

[DEBUG] Configuring mojo '
org.apache.maven.plugins:maven-deploy-plugin:2.2:deploy' -->
[DEBUG]   (f) artifact = ....stars:stars:pom:1.01.01
[DEBUG]   (f) attachedArtifacts = []
[DEBUG]   (f) deploymentRepository = [ssh-repository] ->
scpexe://<myIpAddress>/home/rward/tmp
[DEBUG]   (s) localRepository = [local] -> file:///home/rward/.m2/repository
[DEBUG]   (f) packaging = pom
[DEBUG]   (f) pomFile = /home/rward/apps/m2/stars/pom.xml
[DEBUG]   (f) updateReleaseInfo = false
[DEBUG] -- end configuration --
[INFO] [deploy:deploy]
[DEBUG] not adding permissions to wagon connection
Uploading:
scpexe://<myIpAddress>/home/rward/tmp/....stars/stars/1.01.01/stars-
1.01.01.pom
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Error deploying artifact: Error executing command for transfer

Exit code -1 - Permission denied (publickey,password,keyboard-interactive).