---- Ulrich Metzger <[EMAIL PROTECTED]> schrieb:
> Hi list,
> i tryed to configure the scm settings in a maven 2 pom.xml using ssh to
> access the remote svn repository.
> But i could not find any example or documentation how to manage this.
> Does anybody know if this is possible and if yes, how to set up this kind of
> repository access, when a username and password is required for ssh login on
> the remote machine.
> I would be interested in a solution which works with Windows and Linux
> client systems.

I have this in ~/.m2/settings.xml:

<settings>
  <servers>
    <server>
      <id>server1</id>
      <username>user1</username>
      <password>pwd1</password>
    </server>

    <server>
      <id>server2</id>
      <username>user2</username>
      <password>pwd2</password>
      <privateKey>/home/user2/.ssh/somekey</privateKey>
    </server>
  </servers>
</settings>

where the ids match the id properties of the repository definitions in the 
pom.xml file.

Regards,
Simon

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

Reply via email to