Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.0-beta-7
-
None
-
None
-
software platform
Description
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]/
</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