Hi,

I am trying to deploy an artifact on a remote repository using mvn
deploy:deploy-file. The command I am trying to execute is 

mvn deploy:deploy-file -Dfile=target/abc-1.2.0.jar
-Durl=scp://remoteMachine/srv/www/htdocs/maven -DgroupId=com.example
-DartifactId=abc -Dversion=1.2.0 -Dpackaging=jar -DpomFile=pom.xml -gs
/home/localUser/apache-maven.-2.2.1/conf/settings.xml

While in settings.xml I have 

<server>
      <id>repo-id</id>
      <username>remoteUser</username>
      <password>myPwd</password>
 </server>

But whenever I execute it, it always prompts for the password with the local
username instead of the username defined in the settings.xml file. such as, 

[email protected]

but I was expecting

[email protected]

Thanks for any help in advance.
Shiraz
-- 
View this message in context: 
http://www.nabble.com/Maven-deploy-ignores-settings.xml-tp26091684p26091684.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to