Maven 2.x and 3.x Site Plugin

SCP works for deploy goal, but not for site-deploy

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 2.0-beta-5
  • Fix Version/s: 2.0-beta-7
  • Component/s: site:deploy
  • Labels:
    None
  • Number of attachments :
    1

Description

The linux admins did everything necessary to get the deploy goal to work, and now I have to go back to them and try and figure out why the "site-deploy" goal says "Auth failed". Why does deploy work just fine with scp, but not site-deploy? My environment is such that my deploy repository and my deploy site directories are in the same parent directory, and have the exact same permissions. But one goal fails to upload, and the other doesn't...

Issue Links

Activity

Hide
Brill Pappin added a comment -

I'm having the same problem.

It seems to be ignoring the information in the server section of the settings.xml file... specifically it's ignoring the sshExecutable and scpExecutable attributes of the server config (notice that the key is found and used however).

In my case I'm deploying with putty on windows. Deploy works but site-deploy does not.

[INFO] [site:deploy]
Using private key: C:\mypath\mykey.ppk
scpexe://myhost/data/maven/site/restart - Session: Opened
Executing command: ssh -i "C:\mypath\mykey.ppk" -o "
BatchMode yes" myuser@myhost/ "mkdir -p /data/maven/site/restart/."

'ssh' is not recognized as an internal or external command,
operable program or batch file.

scpexe://myhost/data/maven/site/restart - Session: Disconnecting
scpexe://myhost/data/maven/site/restart - Session: Disconnected

Show
Brill Pappin added a comment - I'm having the same problem. It seems to be ignoring the information in the server section of the settings.xml file... specifically it's ignoring the sshExecutable and scpExecutable attributes of the server config (notice that the key is found and used however). In my case I'm deploying with putty on windows. Deploy works but site-deploy does not. [INFO] [site:deploy] Using private key: C:\mypath\mykey.ppk scpexe://myhost/data/maven/site/restart - Session: Opened Executing command: ssh -i "C:\mypath\mykey.ppk" -o " BatchMode yes" myuser@myhost/ "mkdir -p /data/maven/site/restart/." 'ssh' is not recognized as an internal or external command, operable program or batch file. scpexe://myhost/data/maven/site/restart - Session: Disconnecting scpexe://myhost/data/maven/site/restart - Session: Disconnected
Hide
Brill Pappin added a comment -

FYI - For me, this issue is a blocker.

Show
Brill Pappin added a comment - FYI - For me, this issue is a blocker.
Hide
David W added a comment -

I have same issue, to deploy site reports from windows to linux server.
and it is a blocker for me.

Show
David W added a comment - I have same issue, to deploy site reports from windows to linux server. and it is a blocker for me.
Hide
Brill Pappin added a comment -

This still isn't fixed, even though it seems to have been resolved in MSITE-25.

Show
Brill Pappin added a comment - This still isn't fixed, even though it seems to have been resolved in MSITE-25.
Hide
Patric Fornasier added a comment -

Still doesn't work in 2.0.5 version. For me this is a major blocker, because it makes the site-deploy goal completely unusable when on windows box. Maybe somebody should put a note in http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html to stop people from wasting time trying to fix their configuration...

Show
Patric Fornasier added a comment - Still doesn't work in 2.0.5 version. For me this is a major blocker, because it makes the site-deploy goal completely unusable when on windows box. Maybe somebody should put a note in http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html to stop people from wasting time trying to fix their configuration...
Hide
wu yiding added a comment -

the current SNAPSHOT still exist bug, add few lines to fix it .
MNG-2324 will change to Add a getWagon(Repository) method to the WagonManager.
If can use this method in the furture,the current ugly fix can be remove.

Show
wu yiding added a comment - the current SNAPSHOT still exist bug, add few lines to fix it . MNG-2324 will change to Add a getWagon(Repository) method to the WagonManager. If can use this method in the furture,the current ugly fix can be remove.
Hide
Brill Pappin added a comment -

This issue is over a year old. Why is there not even anyone assigned to it?
There seems to be ample descriptions of the problem and even a patch or two.

Show
Brill Pappin added a comment - This issue is over a year old. Why is there not even anyone assigned to it? There seems to be ample descriptions of the problem and even a patch or two.
Hide
Dennis Lundberg added a comment -

There are currently 949 open issues for Maven 2 plugins alone. Many of us working on Maven do it in our spare time. Unfortunately there never seems to be enough spare time.

Show
Dennis Lundberg added a comment - There are currently 949 open issues for Maven 2 plugins alone. Many of us working on Maven do it in our spare time. Unfortunately there never seems to be enough spare time.

People

Vote (6)
Watch (9)

Dates

  • Created:
    Updated:
    Resolved: