Hi,
I'm having some problems deploying artifacts to a remote server from
Windows. I have the following entry in my projects POM:
<distributionManagement>
<repository>
<id>repo-aux</id>
<name>Fluxion aux repository</name>
<url>scp://deanmoor.ncl.ac.uk/var/www/fluxions/repo-aux</url>
</repository>
</distributionManagement>
I'm using PuTTY and pscp as my clients, so as far as I can tell from the
guide, I should add to my settings.xml something like:
<servers>
<server>
<id>repo-aux</id>
<username>tony</username>
<privateKey>/home/tony/.ssh/id_dsa.ppk</privateKey>
<configuration>
<sshExecutable>putty</sshExecutable>
<scpExecutable>pscp</scpExecutable>
</configuration>
</server>
</servers>
Although as I'm using pageant, I'm not supposed to need the path to my
private key either.
Anyway, whats confusing me is that if I run "mvn deploy" with my
settings.xml set up as shown, I'm getting an error:
Identity: com.jcraft.jsch.JSchException: invaid privatekey:
c:\home\tony\.ssh\id_dsa.ppk
[WARNING] repository metadata for: 'snapshot
org.comparagrid.fluxion.plugins:maven-protege-plugin-plugin:1.0-SNAPSHOT'
could not be retrieved from repository: repo-aux due to an error:
Authentication failed: Cannot connect. Reason: invaid privatekey:
c:\home\tony\.ssh\id_dsa.ppk
[INFO] Repository 'repo-aux' will be blacklisted
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Error deploying artifact: While configuring wagon for 'repo-aux':
Unable to apply wagon configuration.
Cannot find setter nor field in
org.apache.maven.wagon.providers.ssh.ScpWagon for 'sshExecutable'
BUT if I remove the <privateKey> element from my setting.xml file, it's
asking me to enter my password every time it tries to access the server
- as if I didn't have any <server> entry at all - even with Pageant
running. I've tried playing around with including the password in my
settings.xml and some other stuff, but I'm completely out of ideas.
Does anybody have any suggestions?
Thanks in advance,
Tony.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]