Your repository id ("portal-repository") does not match the server's id.

-- Kenney

Jeff Mutonho wrote:
In my  settings.xml I have

<servers>
 <server>
   <id>165.148.216.14</id>
   <username>maven</username>
   <password>maven</password>
 </server>
</servers>


and in the top-level pom

<distributionManagement>
   <site>
     <id>165.148.216.14</id>
     <name>Portal App Website</name>
     <url>scp://165.148.216.14/var/www/html/projects/eportal</url>
   </site>
   <repository>
    <id>portal-repository</id>
    <name>Portal Repository</name>
    <url>scp://165.148.216.14/home/maven/portal-releases</url>
   </repository>
 </distributionManagement>


When I run 'mvn deploy'  , I get prompted for a my password(even
though its specified in the settings.xml) .After typing the password ,
I get the following authentication error message :

[INFO] [deploy:deploy]
Password for [EMAIL PROTECTED]: maven
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------ [INFO] Error deploying artifact: Authentication failed: Cannot connect. Reason:
Auth fail

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26 seconds
[INFO] Finished at: Fri Oct 27 10:42:43 CAT 2006
[INFO] Final Memory: 5M/508M
[INFO] ------------------------------------------------------------------------


Q1) Why am I prompted for a password even though I specify one in the
settings.xml file?

Q2)When I get prompted for a password , the connect string is incorrect :
"Password for [EMAIL PROTECTED]:"
The username as stated in the setting.xml is "maven" and I would
expect it to be "[EMAIL PROTECTED]" .
"mutonhj" is my username on the PC.Why is maven using this to
construct the connect string?




Jeff  Mutonho

GoogleTalk : ejbengine
Skype        : ejbengine
Registered Linux user number 366042

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

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

Reply via email to