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]

Reply via email to