Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.4.1
    • Labels:
      None
    • Environment:
      WinXP & Cygwin
    • Number of attachments :
      2

      Description

      New protocol scpexe is not compatible to old functionality in the deploy-plugin. It fails now on Cygwin silently (BUILD SUCCEEDED). Debugging with -X reveals, that the implementation uses now absolute instead of relative paths. Unfortunately something like "C:\xxx\yyy" is interpreted as a file on host C. Using relative paths like "xxx\yyy", there is no problem with Cygwin's scp.

      1. scpwin
        0.2 kB
        Jörg Schaible
      2. scpwin.bat
        0.1 kB
        Jörg Schaible

        Activity

        Hide
        Jörg Schaible added a comment -

        Wrapper shell script for scp

        Show
        Jörg Schaible added a comment - Wrapper shell script for scp
        Hide
        Jörg Schaible added a comment -

        Wrapper DOS batch

        Show
        Jörg Schaible added a comment - Wrapper DOS batch
        Hide
        Jörg Schaible added a comment -

        Since I am not really sure, if anything can be done about it (since Cygwin & Java do not play nice often and you can't really blame Cygwin's scp nor the artifact-plugin), I've added a workaround by using two wrappers, one for the command line and one for the cygwin shell.

        To use them, put both scripts into the path and set

        maven.scp.executable=scpwin.bat

        Show
        Jörg Schaible added a comment - Since I am not really sure, if anything can be done about it (since Cygwin & Java do not play nice often and you can't really blame Cygwin's scp nor the artifact-plugin), I've added a workaround by using two wrappers, one for the command line and one for the cygwin shell. To use them, put both scripts into the path and set maven.scp.executable=scpwin.bat
        Hide
        dion gillard added a comment -

        This really should be documented as an FAQ.

        Show
        dion gillard added a comment - This really should be documented as an FAQ.
        Hide
        Jörg Schaible added a comment -

        The FAQ is possibly the best solution along with a link to download this two files.

        Show
        Jörg Schaible added a comment - The FAQ is possibly the best solution along with a link to download this two files.
        Hide
        Carlos Sanchez added a comment -

        As a suggestion, using putty http://www.chiark.greenend.org.uk/~sgtatham/putty/ on windows is a better option than cygwin openssh.

        Show
        Carlos Sanchez added a comment - As a suggestion, using putty http://www.chiark.greenend.org.uk/~sgtatham/putty/ on windows is a better option than cygwin openssh.
        Hide
        Jörg Schaible added a comment -

        > As a suggestion, using putty on windows is a better option than cygwin openssh.

        Well, this depends heavily on your environment and your own preferences. But if you already mension PuTTy, you should also mension how to set it up, to work with scpexe at all:

        maven.ssh.executable=plink
        maven.ssh.options=-A -2 -ssh
        maven.ssh.executable=pscp
        maven.ssh.options=-2

        So, what's easier ?

        Show
        Jörg Schaible added a comment - > As a suggestion, using putty on windows is a better option than cygwin openssh. Well, this depends heavily on your environment and your own preferences. But if you already mension PuTTy, you should also mension how to set it up, to work with scpexe at all: maven.ssh.executable=plink maven.ssh.options=-A -2 -ssh maven.ssh.executable=pscp maven.ssh.options=-2 So, what's easier ?
        Hide
        Brett Porter added a comment -

        fixed - will commit later

        Show
        Brett Porter added a comment - fixed - will commit later

          People

          • Assignee:
            Brett Porter
            Reporter:
            Jörg Schaible
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: