From: Brett P. <bre...@gm...> - 2004-12-07 22:23:54
|
I think I use shell1.maven-plugins.sf.net... isn't that specified in ${basedir}/project.properties as maven.repo.maven-plugins-sf? Cheers, Brett On Tue, 07 Dec 2004 14:59:14 +0100, st=E9phane bouchet <ste...@em...> wrote: > Hi, >=20 > Well my SSH private key is now ok, i could run ssh on the command line as= explained. >=20 > 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 >=20 > BUILD FAILED > File...... C:\Documents and > 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 >=20 > 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 >=20 > BUILD FAILED > File...... C:\Documents and > 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 >=20 > Thanks again for your help, >=20 > St=E9phane >=20 > Brett Porter a =E9crit : >=20 >=20 > >>So i am a bit confused. > > > > > > maven jar:deploy and site:deploy actually use different mechanisms: > > the first is a Java SSH library, the latter justa command line ssh. > > > > > >>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 > > > > > > is this an Open SSH private key? It should work. > > > > 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 > > > > (you can use plink if you need to by setting maven.ssh.executable). > > > > HTH, > > Brett > > >=20 > |