jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Maven 1.x Artifact Plugin
  • Maven 1.x Artifact Plugin
  • MPARTIFACT-23

scp dos not work at all

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical 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 :
    0

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

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brett Porter added a comment - 06/Jul/04 10:30 AM

added -o

Show
Brett Porter added a comment - 06/Jul/04 10:30 AM added -o

People

  • Assignee:
    Brett Porter
    Reporter:
    Jörg Schaible
Vote (0)
Watch (0)

Dates

  • Created:
    05/Jul/04 10:49 AM
    Updated:
    06/Jul/04 10:30 AM
    Resolved:
    06/Jul/04 10:30 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.