Hello, 
  I am having a very hard time getting our *:deploy goals to upload to our
internal repository via SCP.  I am using all putty tools, so I am using
plink and pscp.  When I execute the command from the command line it works,
when I execute it from Maven, I receive an exception.  I am using Maven
1.02. Has anyone else experienced this issue or know how to solve it?  I
have been trying for 3 days to get this to work.  If I execute the following
command it works.

pscp -i "c:\documents and settings\c200506\maven.ppk" -l c200506
target/atacommon-1.3.jar
sun10.ata.com:/a01/proj/Maven/repository/atacommon/jars/atacommon-1.3.jar

Here is the error from the debug ssh logs for our server.

debug1: userauth-request for user USERNAME_NOT_SET service ssh-connection
method none

Here is the error message locally

jar:deploy:
    [echo] maven.repo.list is set - using artifact deploy mode
Will deploy to 1 repository(ies): sun10
Deploying to repository: sun10
com.jcraft.jsch.JSchException: Auth fail
        at com.jcraft.jsch.Session.connect(Unknown Source)
        at
org.apache.maven.deploy.deployers.GenericSshDeployer.init(GenericSshDeployer
.java:181)
        at
org.apache.maven.deploy.deployers.ScpDeployer.init(ScpDeployer.java:103)
        at org.apache.maven.deploy.DeployTool.deploy(DeployTool.java:134)
        at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.doDeploy(DefaultA
rtifactDeployer.java:390)
        at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArt
ifactDeployer.java:123)
        at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArt
ifactDeployer.java:121)
        at
org.apache.maven.artifact.deployer.DeployBean.deploy(DeployBean.java:144)
        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:324)
        at
org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:230)
        at
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:145)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
        at
org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java:87)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
        at
org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:84)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at
org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:125)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:
79)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
(MavenGoalTag.java:110)
        at com.werken.werkz.Goal.fire(Goal.java:639)
        at com.werken.werkz.Goal.attain(Goal.java:575)
        at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671)
        at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
        at org.apache.maven.cli.App.doMain(App.java:488)
        at org.apache.maven.cli.App.main(App.java:1239)
        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:324)
        at com.werken.forehead.Forehead.run(Forehead.java:551)
        at com.werken.forehead.Forehead.main(Forehead.java:581)
Failed to deploy to: sun10 Reason: Cannot connect. Reason: Auth fail



My build.properties in user.home

#User Settings.  Only modify these settings to the end comment!
maven.username=c200506
user.name=c200506
user.home=c:/Documents and Settings/${user.name}

#End User Settings

#Maven Settings

maven.xdoc.date=left
maven.scp.executable=pscp
maven.scp.args=-2 -i ${user.home}/maven.ppk 
maven.ssh.executable=TortoisePlink

#Repository Settings

#Download Settings
maven.repo.remote=http://www.ibiblio.org/maven/,http://sun10.ata.com:9200/Ma
ven/repository/

#Repository Upload Settings
maven.repo.list=sun10
maven.repo.sun10=scp://sun10.ata.com 
maven.repo.sun10.directory=/a01/proj/Maven/repository
maven.repo.sun10.username=${maven.username}


#CVS Settings
maven.scm.method=cvs
maven.scm.cvs.root=:ext:[EMAIL PROTECTED]:/a01/proj/CVS


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to