I managed to get it to work with Maven 2.XX, downgrading wagon-ssh to 1.0:
<build> ... <extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-ssh</artifactId> <version>1.0</version> </extension> </extensions> </build>
Aside, I had problems with 1.0 (and the latest versions of wagon-ssh) using maven version 3.2.1 and scp: repository URLs. When downloading from a repo, small files will hang at the end. I switched to using sftp: URL and everything seems to work better.
source share