From: <Ste...@em...> - 2004-12-07 14:00:39
|
Hi, Well my SSH private key is now ok, i could run ssh on the command line as= explained. But when i tried to do a maven plugin:repository-deploy, i got an error : Failed to deploy to: maven-plugins-sf Reason: Cannot connect. Reason:=20 Session.connect: java.net.UnknownHostException: shell.maven-plugins.sf.ne= t BUILD FAILED File...... C:\Documents and=20 Settings\sbouchet\.maven\cache\maven-artifact-plugin-1.4.1\plugin.jelly Element... artifact:artifact-deploy Line...... 94 Column.... 13 Unable to deploy to any repositories Total time: 4 seconds Finished at: Tue Dec 07 14:52:03 CET 2004 If I change the host to maven-plugins.sf.net, i got this error : Failed to deploy to: maven-plugins-sf Reason: Cannot connect. Reason: Aut= h fail BUILD FAILED File...... C:\Documents and=20 Settings\sbouchet\.maven\cache\maven-artifact-plugin-1.4.1\plugin.jelly Element... artifact:artifact-deploy Line...... 94 Column.... 13 Unable to deploy to any repositories Total time: 15 seconds Finished at: Tue Dec 07 14:55:17 CET 2004 Thanks again for your help, St=E9phane Brett Porter a =E9crit : >>So i am a bit confused. >=20 >=20 > maven jar:deploy and site:deploy actually use different mechanisms: > the first is a Java SSH library, the latter justa command line ssh. >=20 >=20 >>I modified my project.properties file under maven-plugins dir like that= : >>maven.repo.maven-plugins-sf.username=3Dle_phan >>maven.repo.maven-plugins-sf.privatekey=3Dd:/temp/privKey >=20 >=20 > is this an Open SSH private key? It should work. >=20 > For site:deploy, you'll need to be able to run: > ssh le...@ma... > on the command line and have it work without a password >=20 > (you can use plink if you need to by setting maven.ssh.executable). >=20 > HTH, > Brett >=20 |