Problem with scp transport (wagon-maven-plugin 1.0-beta-3, Maven 2.2.1, Ubuntu
11.04)
-------------------------------------------------------------------------------------
Key: MNG-5165
URL: https://jira.codehaus.org/browse/MNG-5165
Project: Maven 2 & 3
Issue Type: Bug
Components: Dependencies
Affects Versions: 2.2.1
Environment: Maven 2.2.1 (manually installed, without apt-get)
Ubuntu 11.04
org.codehaus.mojo:wagon-maven-plugin:1.0-beta-3
Reporter: Florin Saftoiu
Priority: Minor
Attachments: pom.xml
Our team uses the wagon-maven-plugin to deliver some artifacts to a distant
server, via scp. Everyone has their SSH public key stored on the distant
computer, so no login/password is necessary.
Some members of the team are using Ubuntu 10.04 and everything is OK. However,
two members have switched to Ubuntu 11.04 and the wagon plugin just hangs upon
execution. Launching the wagon plugin separately (outside of the release
lifecycle) reveals that it's actually waiting for the user to enter the
password. I should mention that these users can login without password on the
distant server via ssh.
The Maven wagon plugin uses JSch to provide scp transport, and JSch files are
embedded in Maven's uber-jar. Upon inspection, it turns out Maven is using
version 0.1.42 of JSch, which, on Ubuntu 11.04, fails to authenticate using
public/private keys on the distant server.
As a workaround, I replaced the JSch files in Maven's uber-jar with those from
version 0.1.44 and they can now upload via SCP on Ubuntu 11.04. This being an
ugly solution, I think Maven 2.2.2 should upgrade to using JSch 0.1.44.
I can, of course, provide more detail, if needed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira