Abraham Kiggundu (JIRA)
Fri, 20 Nov 2009 06:59:18 -0800
[
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]:[passwo...@[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://[us...@[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