Here's some more info on this problem :
I tried running "mvn -X deploy", here's the relevant portion :

[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.2.1:deploy' -->
[DEBUG]   (f) artifact = Cactus:Cactus:jar:0.0.2
[DEBUG]   (f) attachedArtifacts = []
[DEBUG] (f) deploymentRepository = [myr-webserver] -> scp:myserver.microtec.fr/deploy [DEBUG] (s) localRepository = [local] -> file://C:\Documents and Settings\Microtec\.m2\repository
[DEBUG]   (f) packaging = jar
[DEBUG]   (f) pomFile = C:\Projects\CACTUS~2\pom.xml
[DEBUG]   (f) updateReleaseInfo = false
[DEBUG] -- end configuration --
[INFO] [deploy:deploy]
[DEBUG] not adding permissions to wagon connection
Password: :

Why on earth is he asking for the password ? Why does he say "not adding permissions to wagon connection" ? Btw : the package is not a SNAPSHOT build, it's got a proper version number.

Any ideas?
Thanks,
Raphael

Raphael Neve 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]

Reply via email to