Given the very poor documentation about scp / ssh and maven, I tried different approaches, mainly in two main categories: using scpexe wagon and scp wagon. Usually they work without problems on both linux and mac, but on Windows I never found a way to make it work on all machines.
scpexe (after installing full putty and adding to the path) - settings.xml configuration:
<server> <id>internal</id> <username>******</username> <password>*******</password> <configuration> <sshExecutable>plink</sshExecutable> <scpExecutable>pscp</scpExecutable> </configuration> </server>
scp approach - settings.xml:
<server> <id>internal</id> <username>*********</username> <password>*********</password> <configuration> <StrictHostKeyChecking>ask</StrictHostKeyChecking> </configuration> </server>
I also tried to set StrictHostKeyChecking to no, but the security risks aside did not work on a specific machine.
Has anyone found a way to constantly use the internal ssh repository on all machines?
java maven ssh scp jsch
Riccardo cossu
source share