On Wed, 2008-05-28 at 11:49 -0700, Henri Yandell wrote:
> On Wed, May 28, 2008 at 9:52 AM, Russel Winder
> <[EMAIL PROTECTED]> wrote:
> > On Wed, 2008-05-28 at 09:04 -0700, Henri Yandell wrote:
> >
> >> Thanks - currently it gets to the password prompt and then refuses to
> >> accept my password. Do I need something in ~/.m2/settings.xml?
> >> Currently I don't have one.
> >
> > You will definitely need a ~/.m2/settings.xml and it needs an entry such
> > as:
> >
> >  <servers>
> >    <server>
> >      <id>dav.codehaus.org</id>
> >      <username>russel</username>
> >      <password>XXXX</password>
> >    </server>
> >  </servers>
> >
> > Only for the Apache servers rather than the Codehaus servers
> > obviously :-)
> 
> Ahhh. It doesn't know the username :) So it's probably trying to login
> as 'hen'. I know I don't usually put the password in there, but always
> forget about the username bit.

Yep. It defaults to your local username, which ain't good if your remote
server account is different.

Just for the record, you can also do
    <server>
      <id>apache.snapshots</id>
      <username>myusername</username>
      <privateKey>/home/me/.ssh/mykey</privateKey>
      <directoryPermissions>775</directoryPermissions>
      <filePermissions>664</filePermissions>
    </server>
If the key has a passphrase, then just run "ssh-add" before running "mvn
-Prc deploy".

Regards,
Simon




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to