I have always had trouble getting this to work under windows, but I rarely
give it my full attention.

Try:  http://www.redhat.com/archives/psyche-list/2003-February/msg01157.html

The password you supply is the one for your local ssh keystore, IIRC.


Link above from :
http://www.google.com/search?q=scp+no+password+windows&btnG=Search


On 7/13/06, Raphael Neve <[EMAIL PROTECTED]> wrote:

Hello,

I am very new to Maven2, but I have looked through the documentation and
not found my answer : I want to deploy to a SCP server but Maven always
prompts me for my password even though I have added it into my
settings.xml file :

(install_dir)/conf/settings.xml :

<settings>
...
  <servers>
    <server>
      <id>my-webserver</id>
      <username>user</username>
      <password>pass</password>
    </server>
  </servers>
...
</settings>

This is my "pom.xml" file for my project :

<project>
...
   <distributionManagement>
      <repository>
          <id>my-webserver</id>
          <name>My Web Server</name>
          <url>scp://myserver.microtec.fr/deploy</url>
      </repository>
   </distributionManagement>
</project>

When I launch "mvn deploy" it displays the following comment :

[INFO] Installing C:\Projects\CactusMaven\target\Cactus-0.0.2.jar to
C:\Documents and
Settings\Microtec\.m2\repository\Cactus\Cactus\0.0.2\Cactus-0.0.2.jar
[INFO] [deploy:deploy]
Password: :

When I enter in the password (same as one in settings.xml), it deploys
correctly (I have to repeat the password 3 or 4 times).
How can I make it deploy automatically without having to re-type the
password?

Thanks,
Raphael



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




--

Never wear anything that panics the cat. -- P. J. O'Rourke

Reply via email to