Jörg Schaible wrote: > Hi Daniel, > > Daniel Serodio wrote on Friday, August 11, 2006 11:38 PM: > > >> I found documentation on how to configure the scp executable at >> http://maven.apache.org/guides/mini/guide-deploy-ssh-external. html, >> but it doesn't work for Maven2: >> >> [INFO] Error deploying artifact: While configuring wagon for >> 'vulcano': Unable to apply wagon configuration. >> >> Cannot find setter nor field in >> org.apache.maven.wagon.providers.ssh.ScpWagon for 'sshExecutable' >> >> How do I configure the scp executable for Maven 2? >> > > let me guess, you have configured your server in the server section of your > settings.xml as well as a repository for your artifacts? You are using the > same id in both cases? > > It seems that a server configuration shares some parts of the configuration > with the repository configuration if the id is the same. Since the repo > configuration uses normally the http provider and it seems to "win" the > configuration match, but it has no sshExecutable setting. > > Solution: Use different ids for server and repository definitions ... > Got it: I had "scp://" instead of "scpexe://" protocol in the repository's URL in my POM. Now that I have corrected it, the remaining problem is that the path to my "scp" has spaces, and Maven dies with:
Exit code 1 - 'c:\Program' is not recognized as a command, application or batch file. (note: I translated this error message to English, because it's produced by Windows' cmd.exe, and my Windows is in portuguese). I tried wrapping the path in double quotes, but it didn't work. What can I do to make it properly recognize this path? Thanks, Daniel Serodio --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
