Maven
  1. Maven
  2. MNG-5165

Problem with scp transport (wagon-maven-plugin 1.0-beta-3, Maven 2.2.1, Ubuntu 11.04)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 3.0.4
    • Component/s: Dependencies
    • Labels:
      None
    • Environment:
      Maven 2.2.1 (manually installed, without apt-get)
      Ubuntu 11.04
      org.codehaus.mojo:wagon-maven-plugin:1.0-beta-3

      Description

      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.

      1. pom.xml
        0.7 kB
        Florin Saftoiu

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          27d 19h 39m 1 Brett Porter 22/Sep/11 21:35
          Mark Thomas made changes -
          Workflow jira [ 12952747 ] Default workflow, editable Closed status [ 12990091 ]
          Mark Thomas made changes -
          Link This issue depends upon WAGON-327 [ WAGON-327 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Workflow jira [ 12715395 ] Default workflow, editable Closed status [ 12755813 ]
          Mark Thomas made changes -
          Link This issue depends upon WAGON-327 [ WAGON-327 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Brett Porter made changes -
          Assignee Brett Porter [ brettporter ]
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Fix Version/s 3.0.4 [ 17215 ]
          Hide
          Brett Porter added a comment -

          This is already fixed in 3.0.4-SNAPSHOT by upgrading Wagon.

          You can workaround this in Maven 2.2.1 by adding the following:

          <build>
            <extensions>
              <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-ssh</artifactId>
                <version>1.0</version>
              </extension>
            </extensions>
          </build>
          
          Show
          Brett Porter added a comment - This is already fixed in 3.0.4-SNAPSHOT by upgrading Wagon. You can workaround this in Maven 2.2.1 by adding the following: <build> <extensions> <extension> <groupId> org.apache.maven.wagon </groupId> <artifactId> wagon-ssh </artifactId> <version> 1.0 </version> </extension> </extensions> </build>
          Brett Porter made changes -
          Field Original Value New Value
          Link This issue depends upon WAGON-327 [ WAGON-327 ]
          Florin Saftoiu created issue -

            People

            • Assignee:
              Brett Porter
              Reporter:
              Florin Saftoiu
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development