Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.1
-
Fix Version/s: None
-
Labels:None
-
Environment:Source: WIN XP, Cygwin; Target: SuSE Linux 7.1; Maven 1.0 RC4
-
Number of attachments :
Description
I cannot get the scp protocol to work at all. Obviously support for ssh-agent is missing (MPARTIFACT-22) and I can only connect at all if I set the username, password, passphrase and privatekey of the repo. Unfortunately the deployment still fails with:
====== %< ==========
jar:deploy:
[echo] maven.repo.list is set - using artifact deploy mode
Will deploy to 1 repository(ies): elsag
Deploying to repository: elsag
host: 'es3.elsag.de'
Using private key: C:\Dokumente und Einstellungen\jos\.ssh\id_dsa
Deploying: C:\Work\Projects\commons\test\project.xml-->elsag-commons/poms/elsag-test-0.2-SNAPSHOT.pom
deployNotCompressed=false
Executing command: scp -t /devel/maven/home/public_html/repo/maven-deployer-62294.zip
Executing command: unzip -u /devel/maven/home/public_html/repo/maven-deployer-62294.zip -d /devel/maven/home/public_html/repo
Failed to deploy to: elsag Reason: Cannot execute remote command: unzip -u /devel/maven/home/public_html/repo/maven-deployer-62294.zip -d /devel/maven/home/public_html/repo
org.apache.maven.deploy.exceptions.TransferFailedException: Cannot execute remote command: unzip -u /devel/maven/home/public_html/repo/maven-deployer-62294.zip -d /devel/maven/home/public_html/repo
====== %< ==========
Executing the commend directly, it is obvious:
====== %< ==========
$ ssh es3 unzip -u /devel/maven/home/public_html/repo/maven-deployer-62294.zip -d /devel/maven/home/public_html/repo
Archive: /devel/maven/home/public_html/repo/maven-deployer-62294.zip
replace /devel/maven/home/public_html/repo/elsag-commons/poms/elsag-test-0.2-SNAPSHOT.pom? [y]es, [n]o, [A]ll, [N]one, [r]ename: Killed by signal 2.
====== %< ==========
Please use -uo as option for unzip! Overwriting is quite common for SNAPSHOT ![]()
– Jörg
added -o