You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Abraham Kiggundu (JIRA)" <ji...@codehaus.org> on 2009/11/20 15:41:55 UTC

[jira] Created: (MSITE-435) Plugin running in batch mode fails to upload site via scp due to failure to resolve credentials from settings.xml

Plugin running in batch mode fails to upload site via scp due to failure to resolve credentials from settings.xml
-----------------------------------------------------------------------------------------------------------------

                 Key: MSITE-435
                 URL: http://jira.codehaus.org/browse/MSITE-435
             Project: Maven 2.x Site Plugin
          Issue Type: Bug
          Components: site:deploy
    Affects Versions: 2.0-beta-7
         Environment: software platform
            Reporter: Abraham Kiggundu


When the site:deploy plugin is ran in interactive mode it prompts you for your username and password. On a Hudson build server we run maven in batch mode.

The command line below:
mvn site:deploy --batch-mode

will always fail the build due to the following error
Cannot connect. Reason: Auth cancel

the only temporary workaround to fix this at the moment is to have the user credentials in your pom as below
    <site>
      <id>docs</id>
      <name>Release Documentation Website</name>
      <url>scp://[USER]:[PASSWORD]@[MACHINE]/{location uri}/</url>
    </site>

In contradiction the distribution management works fine with the following pom setup
<distributionManagement>
  <repository>
    <id>id</id>
    <name>the id</name>
    <url>scp://[USER]@[MACHINE]/{location uri}/</url>
  </repository>
</distributionManagement>

and never prompts you for user credentials always grabing them from the settings .xml

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSITE-435) Plugin running in batch mode fails to upload site via scp due to failure to resolve credentials from settings.xml

Posted by "Abraham Kiggundu (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=198838#action_198838 ] 

Abraham Kiggundu commented on MSITE-435:
----------------------------------------

I took a deeper look into this and realised the server <id></id> in my settings.xml was not matching the site <id></id> value. Once I corrected this all was fine without placing the credentials in the url. 

> Plugin running in batch mode fails to upload site via scp due to failure to resolve credentials from settings.xml
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-435
>                 URL: http://jira.codehaus.org/browse/MSITE-435
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 2.0-beta-7
>         Environment: software platform
>            Reporter: Abraham Kiggundu
>
> When the site:deploy plugin is ran in interactive mode it prompts you for your username and password. On a Hudson build server we run maven in batch mode.
> The command line below:
> mvn site:deploy --batch-mode
> will always fail the build due to the following error
> Cannot connect. Reason: Auth cancel
> the only temporary workaround to fix this at the moment is to have the user credentials in your pom as below
>     <site>
>       <id>docs</id>
>       <name>Release Documentation Website</name>
>       <url>scp://[USER]:[PASSWORD]@[MACHINE]/{location uri}/</url>
>     </site>
> In contradiction the distribution management works fine with the following pom setup
> <distributionManagement>
>   <repository>
>     <id>id</id>
>     <name>the id</name>
>     <url>scp://[USER]@[MACHINE]/{location uri}/</url>
>   </repository>
> </distributionManagement>
> and never prompts you for user credentials always grabing them from the settings .xml

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MSITE-435) Plugin running in batch mode fails to upload site via scp due to failure to resolve credentials from settings.xml

Posted by "Abraham Kiggundu (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Abraham Kiggundu closed MSITE-435.
----------------------------------

    Resolution: Not A Bug

Issue resolved by further investigation as per comments

> Plugin running in batch mode fails to upload site via scp due to failure to resolve credentials from settings.xml
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-435
>                 URL: http://jira.codehaus.org/browse/MSITE-435
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 2.0-beta-7
>         Environment: software platform
>            Reporter: Abraham Kiggundu
>
> When the site:deploy plugin is ran in interactive mode it prompts you for your username and password. On a Hudson build server we run maven in batch mode.
> The command line below:
> mvn site:deploy --batch-mode
> will always fail the build due to the following error
> Cannot connect. Reason: Auth cancel
> the only temporary workaround to fix this at the moment is to have the user credentials in your pom as below
>     <site>
>       <id>docs</id>
>       <name>Release Documentation Website</name>
>       <url>scp://[USER]:[PASSWORD]@[MACHINE]/{location uri}/</url>
>     </site>
> In contradiction the distribution management works fine with the following pom setup
> <distributionManagement>
>   <repository>
>     <id>id</id>
>     <name>the id</name>
>     <url>scp://[USER]@[MACHINE]/{location uri}/</url>
>   </repository>
> </distributionManagement>
> and never prompts you for user credentials always grabing them from the settings .xml

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira