While the protocol specified is 'scp', I can see that shell command interpreter is expected by maven-deploy-plugin (by Wagon, to be more exact). As I already mentioned, it tries to create directories on remote host by using org.apache.maven.wagon.providers.ssh.ScpHelper. And 'mkdir' is used for that as you can see from the implementation of createRemoteDirectories() method <https://maven.apache.org/wagon/wagon-providers/wagon-ssh-common/apidocs/src-html/org/apache/maven/wagon/providers/ssh/ScpHelper.html#line.341> (some code omitted):
String mkdirCmd = "mkdir -p \"" + path + "\""; executor.executeCommand( mkdirCmd ); At least this method is invoked on my system when I do 'mvn deploy:deploy-file'. jbonofre wrote > If you do, mvn deploy:deploy-file with scp, Karaf scp can create folder > in the system folder (it's not ssh, it's scp). > > So, it should work with scp, not with sshexe. -- View this message in context: http://karaf.922171.n3.nabble.com/Maven-deploy-direct-to-Karaf-instance-tp4042149p4049678.html Sent from the Karaf - User mailing list archive at Nabble.com.
