You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jeff Mutonho <ej...@gmail.com> on 2006/10/27 10:57:13 UTC

ftp-wagon : Authentication failed

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 mutonhj@165.148.216.14: 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 mutonhj@165.148.216.14:"
The username as stated in the setting.xml is "maven" and I would
expect it to be "maven@165.148.216.14" .
"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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: ftp-wagon : Authentication failed

Posted by Jeff Mutonho <ej...@gmail.com>.
On 10/31/06, Kenney Westerhof <ke...@apache.org> wrote:
> Your repository id ("portal-repository") does not match the server's id.
>
> -- Kenney
>

Where did you come from , man :) .Thank you.Where is this documented
so I can read upon it.




Jeff  Mutonho

GoogleTalk : ejbengine
Skype        : ejbengine
Registered Linux user number 366042

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: ftp-wagon : Authentication failed

Posted by Kenney Westerhof <ke...@apache.org>.
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 mutonhj@165.148.216.14: 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 mutonhj@165.148.216.14:"
> The username as stated in the setting.xml is "maven" and I would
> expect it to be "maven@165.148.216.14" .
> "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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: ftp-wagon : Authentication failed

Posted by Jeff Mutonho <ej...@gmail.com>.
Hi Guys

Just wondering if anyone got some ideas around this?I've playing around with
it but to no avail


Jeff  Mutonho

GoogleTalk : ejbengine
Skype        : ejbengine
Registered Linux user number 366042