[ 
https://issues.apache.org/jira/browse/WAGON-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16730842#comment-16730842
 ] 

Michael Osipov commented on WAGON-543:
--------------------------------------

We do have a problem now:
{noformat}
[mosipov@mika-ion ~/Projekte/wagon-maven-plugin/src/test/projects/ssh-it]$ tree 
~/apache-maven-3.6.1-SNAPSHOT/lib/ | grep wagon
├── maven-resolver-transport-wagon-1.3.1.jar
├── wagon-file-3.2.0.jar
├── wagon-http-3.2.0-shaded.jar.bak
├── wagon-http-3.3.1-SNAPSHOT-shaded.jar
└── wagon-provider-api-3.2.0.jar
{noformat}

now the run:
{noformat}
[mosipov@mika-ion ~/Projekte/wagon-maven-plugin/src/test/projects/ssh-it]$ git 
branch
* master
[mosipov@mika-ion ~/Projekte/wagon-maven-plugin/src/test/projects/ssh-it]$ git 
diff
diff --git a/src/test/projects/ssh-it/pom.xml b/src/test/projects/ssh-it/pom.xml
index 4f1a9b7..4a0d215 100644
--- a/src/test/projects/ssh-it/pom.xml
+++ b/src/test/projects/ssh-it/pom.xml
@@ -8,7 +8,7 @@
   <version>testing</version>

   <properties>
-    <wagon.api.version>3.0.0</wagon.api.version>
+    <wagon.api.version>3.3.1-SNAPSHOT</wagon.api.version>
   </properties>

   <build>
diff --git a/src/test/projects/ssh-it/settings.xml 
b/src/test/projects/ssh-it/settings.xml
index 1d96526..8200f9a 100644
--- a/src/test/projects/ssh-it/settings.xml
+++ b/src/test/projects/ssh-it/settings.xml
@@ -1,16 +1,15 @@
 <settings xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 
http://maven.apache.org/xsd/settings-1.1.0.xsd";>
-  <localRepository 
xmlns="http://maven.apache.org/SETTINGS/1.1.0";>/home/jbochenski/.m2/repository</localRepository>
   <servers xmlns="http://maven.apache.org/SETTINGS/1.1.0";>
     <server>
       <id>wagon-maven-plugin-ssh-test</id>
       <username>${user.name}</username>
-      <password></password>
-      <configuration>
+      <privateKey>${user.home}/.ssh/id_rsa</privateKey>
+      <!--    <configuration>
         <knownHostsProvider 
implementation="org.apache.maven.wagon.providers.ssh.knownhost.NullKnownHostProvider">
           <hostKeyChecking>no</hostKeyChecking>
         </knownHostsProvider>
-      </configuration>
+</configuration>-->
     </server>
   </servers>
-</settings>
\ No newline at end of file
+</settings>
[mosipov@mika-ion ~/Projekte/wagon-maven-plugin/src/test/projects/ssh-it]$ 
~/apache-maven-3.6.1-SNAPSHOT/bin/mvn -V -Dit-plugin.version=2.0.0 -s 
settings.xml
Apache Maven 3.6.1-SNAPSHOT (9c946263facbfa851fb646b3fac62cf1d3302ded; 
2018-12-29T19:10:03+01:00)
Maven home: /home/mosipov/apache-maven-3.6.1-SNAPSHOT
Java version: 1.8.0_192, vendor: Oracle Corporation, runtime: 
/usr/local/openjdk8/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "freebsd", version: "11.2-release-p7", arch: "i386", family: "unix"
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< org.codehaus.mojo:wagon-maven-plugin >----------------
[INFO] Building wagon-maven-plugin testing
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- wagon-maven-plugin:2.0.0:sshexec (ssh-exec) @ wagon-maven-plugin ---
[INFO] sshexec: rm -rf /tmp/wagon ...


[INFO] sshexec: mkdir -p /tmp/wagon/empty ...


[INFO] sshexec: touch /tmp/wagon/a.txt ...


[INFO] sshexec: touch /tmp/wagon/b.txt ...


[INFO]
[INFO] --- wagon-maven-plugin:2.0.0:list (ssh-list-1) @ wagon-maven-plugin ---
[INFO] Scanning remote file system: scp://localhost ...
[INFO]  a.txt
[INFO]
[INFO] --- wagon-maven-plugin:2.0.0:list (ssh-list-2) @ wagon-maven-plugin ---
[INFO] Scanning remote file system: scp://localhost ...
[INFO]  a.txt
[INFO]  b.txt
[INFO]
[INFO] --- wagon-maven-plugin:2.0.0:upload-single (ssh-upload-single) @ 
wagon-maven-plugin ---
[INFO] Uploading: 
/usr/home/mosipov/Projekte/wagon-maven-plugin/src/test/projects/ssh-it/src/test/data/gt-32k.txt
 scp://localhost/tmp/wagon/gt-32k.txt
[INFO]
[INFO] --- wagon-maven-plugin:2.0.0:download-single (ssh-download-single) @ 
wagon-maven-plugin ---
[INFO] Downloading: scp://localhost/tmp/wagon/gt-32k.txt to 
/usr/home/mosipov/Projekte/wagon-maven-plugin/src/test/projects/ssh-it/target/gt-32k.txt
[INFO]
[INFO] --- wagon-maven-plugin:2.0.0:sshexec (ssh-exec-wagon-431) @ 
wagon-maven-plugin ---
[INFO] sshexec: cat /tmp/wagon/gt-32k.txt ...
<?xml version="1.0" encoding="UTF-8"?>
<project>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>wagon-maven-plugin</artifactId>
  <packaging>pom</packaging>
  <version>testing</version>

  <build>

    <defaultGoal>package</defaultGoal>

    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ssh</artifactId>
        <version>2.11</version>
      </extension>
    </extensions>

    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>wagon-maven-plugin</artifactId>
        <version>1.1-SNAPSHOT</version>
        <configuration>
          <serverId>wagon-maven-plugin-ssh-test</serverId>
          <url>scp://localhost:2222</url>
        </configuration>
        <executions>

          <execution>
            <id>ssh-exec</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>rm -rf /tmp/wagon</command>
                <command>mkdir -p /tmp/wagon/empty</command>
                <command>touch /tmp/wagon/a.txt</command>
                <command>touch /tmp/wagon/b.txt</command>
              </commands>
            </configuration>
          </execution>
          <execution>
            <id>ssh-list-1</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
              <excludes>**/b.txt</excludes>
            </configuration>
          </execution>
                    <execution>
            <id>ssh-list-2</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
            </configuration>
          </execution>

          <execution>
            <id>ssh-upload-single</id>
            <phase>package</phase>
            <goals>
              <goal>upload-single</goal>
            </goals>
            <configuration>
              <fromFile>pom.xml</fromFile>
              <toFile>tmp/wagon/pom.xml</toFile>
            </configuration>
          </execution>
          <execution>
            <id>ssh-download-single</id>
            <phase>package</phase>
            <goals>
              <goal>download-single</goal>
            </goals>
            <configuration>
              <fromFile>tmp/wagon/pom.xml</fromFile>
              <toFile>${project.build.directory}/pom.xml</toFile>
            </configuration>
          </execution>

          <execution>
            <id>ssh-exec-2</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>cat /tmp/wagon/pom.xml</command>
              </commands>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>


</project>

<!--



<?xml version="1.0" encoding="UTF-8"?>
<project>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>wagon-maven-plugin</artifactId>
  <packaging>pom</packaging>
  <version>testing</version>

  <build>

    <defaultGoal>package</defaultGoal>

    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ssh</artifactId>
        <version>2.9-SNAPSHOT</version> <!-- need WAGON-429 fix -->
      </extension>
    </extensions>

    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>wagon-maven-plugin</artifactId>
        <version>1.0</version>
        <configuration>
          <serverId>wagon-maven-plugin-ssh-test</serverId>
          <url>scp://localhost:2222</url>
        </configuration>
        <executions>

          <execution>
            <id>ssh-exec</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>rm -rf /tmp/wagon</command>
                <command>mkdir -p /tmp/wagon/empty</command>
                <command>touch /tmp/wagon/a.txt</command>
                <command>touch /tmp/wagon/b.txt</command>
              </commands>
            </configuration>
          </execution>
          <execution>
            <id>ssh-list-1</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
              <excludes>**/b.txt</excludes>
            </configuration>
          </execution>
                    <execution>
            <id>ssh-list-2</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
            </configuration>
          </execution>

          <execution>
            <id>ssh-upload-single</id>
            <phase>package</phase>
            <goals>
              <goal>upload-single</goal>
            </goals>
            <configuration>
              <fromFile>pom.xml</fromFile>
              <toFile>tmp/wagon/pom.xml</toFile>
            </configuration>
          </execution>
          <execution>
            <id>ssh-download-single</id>
            <phase>package</phase>
            <goals>
              <goal>download-single</goal>
            </goals>
            <configuration>
              <fromFile>tmp/wagon/pom.xml</fromFile>
              <toFile>${project.build.directory}/pom.xml</toFile>
            </configuration>
          </execution>

          <execution>
            <id>ssh-exec-2</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>cat /tmp/wagon/pom.xml</command>
              </commands>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>


</project>



<?xml version="1.0" encoding="UTF-8"?>
<project>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>wagon-maven-plugin</artifactId>
  <packaging>pom</packaging>
  <version>testing</version>

  <build>

    <defaultGoal>package</defaultGoal>

    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ssh</artifactId>
        <version>2.9-SNAPSHOT</version> <!-- need WAGON-429 fix -->
      </extension>
    </extensions>

    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>wagon-maven-plugin</artifactId>
        <version>1.0</version>
        <configuration>
          <serverId>wagon-maven-plugin-ssh-test</serverId>
          <url>scp://localhost:2222</url>
        </configuration>
        <executions>

          <execution>
            <id>ssh-exec</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>rm -rf /tmp/wagon</command>
                <command>mkdir -p /tmp/wagon/empty</command>
                <command>touch /tmp/wagon/a.txt</command>
                <command>touch /tmp/wagon/b.txt</command>
              </commands>
            </configuration>
          </execution>
          <execution>
            <id>ssh-list-1</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
              <excludes>**/b.txt</excludes>
            </configuration>
          </execution>
                    <execution>
            <id>ssh-list-2</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
            </configuration>
          </execution>

          <execution>
            <id>ssh-upload-single</id>
            <phase>package</phase>
            <goals>
              <goal>upload-single</goal>
            </goals>
            <configuration>
              <fromFile>pom.xml</fromFile>
              <toFile>tmp/wagon/pom.xml</toFile>
            </configuration>
          </execution>
          <execution>
            <id>ssh-download-single</id>
            <phase>package</phase>
            <goals>
              <goal>download-single</goal>
            </goals>
            <configuration>
              <fromFile>tmp/wagon/pom.xml</fromFile>
              <toFile>${project.build.directory}/pom.xml</toFile>
            </configuration>
          </execution>

          <execution>
            <id>ssh-exec-2</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>cat /tmp/wagon/pom.xml</command>
              </commands>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>


</project>



<?xml version="1.0" encoding="UTF-8"?>
<project>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>wagon-maven-plugin</artifactId>
  <packaging>pom</packaging>
  <version>testing</version>

  <build>

    <defaultGoal>package</defaultGoal>

    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ssh</artifactId>
        <version>2.9-SNAPSHOT</version> <!-- need WAGON-429 fix -->
      </extension>
    </extensions>

    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>wagon-maven-plugin</artifactId>
        <version>1.0</version>
        <configuration>
          <serverId>wagon-maven-plugin-ssh-test</serverId>
          <url>scp://localhost:2222</url>
        </configuration>
        <executions>

          <execution>
            <id>ssh-exec</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>rm -rf /tmp/wagon</command>
                <command>mkdir -p /tmp/wagon/empty</command>
                <command>touch /tmp/wagon/a.txt</command>
                <command>touch /tmp/wagon/b.txt</command>
              </commands>
            </configuration>
          </execution>
          <execution>
            <id>ssh-list-1</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
              <excludes>**/b.txt</excludes>
            </configuration>
          </execution>
                    <execution>
            <id>ssh-list-2</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
            </configuration>
          </execution>

          <execution>
            <id>ssh-upload-single</id>
            <phase>package</phase>
            <goals>
              <goal>upload-single</goal>
            </goals>
            <configuration>
              <fromFile>pom.xml</fromFile>
              <toFile>tmp/wagon/pom.xml</toFile>
            </configuration>
          </execution>
          <execution>
            <id>ssh-download-single</id>
            <phase>package</phase>
            <goals>
              <goal>download-single</goal>
            </goals>
            <configuration>
              <fromFile>tmp/wagon/pom.xml</fromFile>
              <toFile>${project.build.directory}/pom.xml</toFile>
            </configuration>
          </execution>

          <execution>
            <id>ssh-exec-2</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>cat /tmp/wagon/pom.xml</command>
              </commands>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>


</project>



<?xml version="1.0" encoding="UTF-8"?>
<project>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>wagon-maven-plugin</artifactId>
  <packaging>pom</packaging>
  <version>testing</version>

  <build>

    <defaultGoal>package</defaultGoal>

    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ssh</artifactId>
        <version>2.9-SNAPSHOT</version> <!-- need WAGON-429 fix -->
      </extension>
    </extensions>

    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>wagon-maven-plugin</artifactId>
        <version>1.0</version>
        <configuration>
          <serverId>wagon-maven-plugin-ssh-test</serverId>
          <url>scp://localhost:2222</url>
        </configuration>
        <executions>

          <execution>
            <id>ssh-exec</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>rm -rf /tmp/wagon</command>
                <command>mkdir -p /tmp/wagon/empty</command>
                <command>touch /tmp/wagon/a.txt</command>
                <command>touch /tmp/wagon/b.txt</command>
              </commands>
            </configuration>
          </execution>
          <execution>
            <id>ssh-list-1</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
              <excludes>**/b.txt</excludes>
            </configuration>
          </execution>
                    <execution>
            <id>ssh-list-2</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
            </configuration>
          </execution>

          <execution>
            <id>ssh-upload-single</id>
            <phase>package</phase>
            <goals>
              <goal>upload-single</goal>
            </goals>
            <configuration>
              <fromFile>pom.xml</fromFile>
              <toFile>tmp/wagon/pom.xml</toFile>
            </configuration>
          </execution>
          <execution>
            <id>ssh-download-single</id>
            <phase>package</phase>
            <goals>
              <goal>download-single</goal>
            </goals>
            <configuration>
              <fromFile>tmp/wagon/pom.xml</fromFile>
              <toFile>${project.build.directory}/pom.xml</toFile>
            </configuration>
          </execution>

          <execution>
            <id>ssh-exec-2</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>cat /tmp/wagon/pom.xml</command>
              </commands>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>


</project>



<?xml version="1.0" encoding="UTF-8"?>
<project>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>wagon-maven-plugin</artifactId>
  <packaging>pom</packaging>
  <version>testing</version>

  <build>

    <defaultGoal>package</defaultGoal>

    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ssh</artifactId>
        <version>2.9-SNAPSHOT</version> <!-- need WAGON-429 fix -->
      </extension>
    </extensions>

    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>wagon-maven-plugin</artifactId>
        <version>1.0</version>
        <configuration>
          <serverId>wagon-maven-plugin-ssh-test</serverId>
          <url>scp://localhost:2222</url>
        </configuration>
        <executions>

          <execution>
            <id>ssh-exec</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>rm -rf /tmp/wagon</command>
                <command>mkdir -p /tmp/wagon/empty</command>
                <command>touch /tmp/wagon/a.txt</command>
                <command>touch /tmp/wagon/b.txt</command>
              </commands>
            </configuration>
          </execution>
          <execution>
            <id>ssh-list-1</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
              <excludes>**/b.txt</excludes>
            </configuration>
          </execution>
                    <execution>
            <id>ssh-list-2</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
            </configuration>
          </execution>

          <execution>
            <id>ssh-upload-single</id>
            <phase>package</phase>
            <goals>
              <goal>upload-single</goal>
            </goals>
            <configuration>
              <fromFile>pom.xml</fromFile>
              <toFile>tmp/wagon/pom.xml</toFile>
            </configuration>
          </execution>
          <execution>
            <id>ssh-download-single</id>
            <phase>package</phase>
            <goals>
              <goal>download-single</goal>
            </goals>
            <configuration>
              <fromFile>tmp/wagon/pom.xml</fromFile>
              <toFile>${project.build.directory}/pom.xml</toFile>
            </configuration>
          </execution>

          <execution>
            <id>ssh-exec-2</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>cat /tmp/wagon/pom.xml</command>
              </commands>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>


</project>




<?xml version="1.0" encoding="UTF-8"?>
<project>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>wagon-maven-plugin</artifactId>
  <packaging>pom</packaging>
  <version>testing</version>

  <build>

    <defaultGoal>package</defaultGoal>

    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ssh</artifactId>
        <version>2.9-SNAPSHOT</version> <!-- need WAGON-429 fix -->
      </extension>
    </extensions>

    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>wagon-maven-plugin</artifactId>
        <version>1.0</version>
        <configuration>
          <serverId>wagon-maven-plugin-ssh-test</serverId>
          <url>scp://localhost:2222</url>
        </configuration>
        <executions>

          <execution>
            <id>ssh-exec</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>rm -rf /tmp/wagon</command>
                <command>mkdir -p /tmp/wagon/empty</command>
                <command>touch /tmp/wagon/a.txt</command>
                <command>touch /tmp/wagon/b.txt</command>
              </commands>
            </configuration>
          </execution>
          <execution>
            <id>ssh-list-1</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
              <excludes>**/b.txt</excludes>
            </configuration>
          </execution>
                    <execution>
            <id>ssh-list-2</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
            </configuration>
          </execution>

          <execution>
            <id>ssh-upload-single</id>
            <phase>package</phase>
            <goals>
              <goal>upload-single</goal>
            </goals>
            <configuration>
              <fromFile>pom.xml</fromFile>
              <toFile>tmp/wagon/pom.xml</toFile>
            </configuration>
          </execution>
          <execution>
            <id>ssh-download-single</id>
            <phase>package</phase>
            <goals>
              <goal>download-single</goal>
            </goals>
            <configuration>
              <fromFile>tmp/wagon/pom.xml</fromFile>
              <toFile>${project.build.directory}/pom.xml</toFile>
            </configuration>
          </execution>

          <execution>
            <id>ssh-exec-2</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>cat /tmp/wagon/pom.xml</command>
              </commands>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>


</project>




<?xml version="1.0" encoding="UTF-8"?>
<project>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>wagon-maven-plugin</artifactId>
  <packaging>pom</packaging>
  <version>testing</version>

  <build>

    <defaultGoal>package</defaultGoal>

    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ssh</artifactId>
        <version>2.9-SNAPSHOT</version> <!-- need WAGON-429 fix -->
      </extension>
    </extensions>

    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>wagon-maven-plugin</artifactId>
        <version>1.0</version>
        <configuration>
          <serverId>wagon-maven-plugin-ssh-test</serverId>
          <url>scp://localhost:2222</url>
        </configuration>
        <executions>

          <execution>
            <id>ssh-exec</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>rm -rf /tmp/wagon</command>
                <command>mkdir -p /tmp/wagon/empty</command>
                <command>touch /tmp/wagon/a.txt</command>
                <command>touch /tmp/wagon/b.txt</command>
              </commands>
            </configuration>
          </execution>
          <execution>
            <id>ssh-list-1</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
              <excludes>**/b.txt</excludes>
            </configuration>
          </execution>
                    <execution>
            <id>ssh-list-2</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
            </configuration>
          </execution>

          <execution>
            <id>ssh-upload-single</id>
            <phase>package</phase>
            <goals>
              <goal>upload-single</goal>
            </goals>
            <configuration>
              <fromFile>pom.xml</fromFile>
              <toFile>tmp/wagon/pom.xml</toFile>
            </configuration>
          </execution>
          <execution>
            <id>ssh-download-single</id>
            <phase>package</phase>
            <goals>
              <goal>download-single</goal>
            </goals>
            <configuration>
              <fromFile>tmp/wagon/pom.xml</fromFile>
              <toFile>${project.build.directory}/pom.xml</toFile>
            </configuration>
          </execution>

          <execution>
            <id>ssh-exec-2</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>cat /tmp/wagon/pom.xml</command>
              </commands>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>


</project>




<?xml version="1.0" encoding="UTF-8"?>
<project>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>wagon-maven-plugin</artifactId>
  <packaging>pom</packaging>
  <version>testing</version>

  <build>

    <defaultGoal>package</defaultGoal>

    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ssh</artifactId>
        <version>2.9-SNAPSHOT</version> <!-- need WAGON-429 fix -->
      </extension>
    </extensions>

    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>wagon-maven-plugin</artifactId>
        <version>1.0</version>
        <configuration>
          <serverId>wagon-maven-plugin-ssh-test</serverId>
          <url>scp://localhost:2222</url>
        </configuration>
        <executions>

          <execution>
            <id>ssh-exec</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>rm -rf /tmp/wagon</command>
                <command>mkdir -p /tmp/wagon/empty</command>
                <command>touch /tmp/wagon/a.txt</command>
                <command>touch /tmp/wagon/b.txt</command>
              </commands>
            </configuration>
          </execution>
          <execution>
            <id>ssh-list-1</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
              <excludes>**/b.txt</excludes>
            </configuration>
          </execution>
                    <execution>
            <id>ssh-list-2</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
            </configuration>
          </execution>

          <execution>
            <id>ssh-upload-single</id>
            <phase>package</phase>
            <goals>
              <goal>upload-single</goal>
            </goals>
            <configuration>
              <fromFile>pom.xml</fromFile>
              <toFile>tmp/wagon/pom.xml</toFile>
            </configuration>
          </execution>
          <execution>
            <id>ssh-download-single</id>
            <phase>package</phase>
            <goals>
              <goal>download-single</goal>
            </goals>
            <configuration>
              <fromFile>tmp/wagon/pom.xml</fromFile>
              <toFile>${project.build.directory}/pom.xml</toFile>
            </configuration>
          </execution>

          <execution>
            <id>ssh-exec-2</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>cat /tmp/wagon/pom.xml</command>
              </commands>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>


</project>




<?xml version="1.0" encoding="UTF-8"?>
<project>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>wagon-maven-plugin</artifactId>
  <packaging>pom</packaging>
  <version>testing</version>

  <build>

    <defaultGoal>package</defaultGoal>

    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ssh</artifactId>
        <version>2.9-SNAPSHOT</version> <!-- need WAGON-429 fix -->
      </extension>
    </extensions>

    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>wagon-maven-plugin</artifactId>
        <version>1.0</version>
        <configuration>
          <serverId>wagon-maven-plugin-ssh-test</serverId>
          <url>scp://localhost:2222</url>
        </configuration>
        <executions>

          <execution>
            <id>ssh-exec</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>rm -rf /tmp/wagon</command>
                <command>mkdir -p /tmp/wagon/empty</command>
                <command>touch /tmp/wagon/a.txt</command>
                <command>touch /tmp/wagon/b.txt</command>
              </commands>
            </configuration>
          </execution>
          <execution>
            <id>ssh-list-1</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
              <excludes>**/b.txt</excludes>
            </configuration>
          </execution>
                    <execution>
            <id>ssh-list-2</id>
            <phase>package</phase>
            <goals>
              <goal>list</goal>
            </goals>
            <configuration>
              <fromDir>/tmp/wagon</fromDir>
              <includes>**</includes>
            </configuration>
          </execution>

          <execution>
            <id>ssh-upload-single</id>
            <phase>package</phase>
            <goals>
              <goal>upload-single</goal>
            </goals>
            <configuration>
              <fromFile>pom.xml</fromFile>
              <toFile>tmp/wagon/pom.xml</toFile>
            </configuration>
          </execution>
          <execution>
            <id>ssh-download-single</id>
            <phase>package</phase>
            <goals>
              <goal>download-single</goal>
            </goals>
            <configuration>
              <fromFile>tmp/wagon/pom.xml</fromFile>
              <toFile>${project.build.directory}/pom.xml</toFile>
            </configuration>
          </execution>

          <execution>
            <id>ssh-exec-2</id>
            <phase>package</phase>
            <goals>
              <goal>sshexec</goal>
            </goals>
            <configuration>
              <displayCommandOutputs>true</displayCommandOutputs>
              <commands>
                <command>cat /tmp/wagon/pom.xml</command>
              </commands>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>


</project>
 -->


[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  15.086 s
[INFO] Finished at: 2018-12-29T23:24:29+01:00
[INFO] ------------------------------------------------------------------------
{noformat}

[~dantran], what did I wrong here?


> wagon-ssh download hangs
> ------------------------
>
>                 Key: WAGON-543
>                 URL: https://issues.apache.org/jira/browse/WAGON-543
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-ssh
>    Affects Versions: 3.3.0
>            Reporter: Dan Tran
>            Assignee: Michael Osipov
>            Priority: Major
>
> To reproduce this issue
>   1. checkout https://github.com/mojohaus/wagon-maven-plugin.git
>   2. Locally build maven 3.6.1-SNAPSHOT with wagon 3.3.0 and run it with
>   3. cd src/test/project/ssh-it; mvn -Dit-plugin.version=2.0.0
> Assume your local account can ssh to same host with ssh key
> other notes:
>   * No problem with maven 3.6.0
>   * I also have internal ssh library wrapper of wagon-ssh to perform 
> sshexe/upload/download activities.  Seeing the same issue with  wagon 3.3.0
>   * The root cause likely is from WAGON-537  with changes at AbstractWagon 
> which may have side effect on internal JSCH 32K buffer
> Reverting WAGON-537 fixes this issue



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to