Hi Ashley, I have had similar issues to you when attempting to use the scp protocol type. See the "[m2] deploy via scp" thread in the list archives.
What I have found is that, as Raphaël has already mentioned, to use scp you need to specify all of username, privateKey and passphrase for each server in your settings.xml. If you want to use scp native features (anything in ~/.ssh or via ssh-agent) you must use the scpexe protocol instead. See <http://jira.codehaus.org/browse/MNG-712> for some related info. Even with the above taken into account there appears to be a bug generating repository metadata when using scp or scpexe. See the "[m2] deploy via scpexe -> Unable to retrieve metadata" thread and <http://jira.codehaus.org/browse/MNG-925>. This sounds similar to what you are experiencing. Cheers, ...andrew Ashley Williams wrote: > Hi Raphaël, > > It could be that using key authentication makes the difference - I'll > see if that > works for me. It seems that I have no luck on anything that involves scp > thus far with Maven. > > Thanks > AW > > On 6 Oct 2005, at 18:32, Raphaël Piéroni wrote: > >> Hi Ashley, >> >> I have: >> <servers> >> <server> >> <id>my.snapshots</id> >> <username>user</username> >> <privateKey>/home/user/.ssh/id_dsa</privateKey> >> <passphrase>THE PASS PHRASE</passphrase> >> </server> >> </server> >> in my settings in ~/.m2/settings.xml. >> And i have: >> <distributionManagement> >> <snapshotRepository> >> <id>my.snapshots</id> >> <name>My Snapshot Central Repository</name> >> <url>scp://HOST/WEBDIR/snapshot-repository</url> >> </snapshotRepository> >> </distributionManagement> >> in my pom.xml. >> I run: m2 -DupdateReleaseInfo=true install >> >> May that helps. >> >> Best regards, >> >> Raphaël >> >> Ashley Williams a écrit : >> >> >>> I would like to create a separate repository for deploy my >>> artifacts and as such I've added a section in my pom: >>> >>> <distributionManagement> >>> <snapshotRepository> >>> <id>agwilliams1000-repo</id> >>> <name>agwilliams1000 Repository</name> >>> <url>scp://myhost/~/Webroot/maven/ >>> repository</url> >>> </snapshotRepository> >>> </distributionManagement> >>> >>> I've also added a corresponding server tag to my settings.xml. >>> However, when I run m2 deploy it always hangs >>> with the message "Retrieving previous build number from >>> agwilliams1000-repo" >>> >>> I have no idea what this previous build number might be as I'm >>> trying to upload the artifact for the first ever time. >>> Any ideas what the problem might be? I've tried m2 -e deploy but I >>> don't get any more information. >>> >>> Thanks >>> AW >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
