Reputation: 5834
I'm using the maven release plugin on hudson. I'm trying to release the project. Everything works till a point where release process tries to do the site deploy. When it tries to do that, maven fails with scp connection refused error.
Here is the log:
Using private key: C:\hudson\.ssh\id_rsa
scp://somehost.somecompany.com/c:/hudson/userContent/some_javadoc/1.9.16/ - Session: Connection refused
scp://somehost.somecompany.com/c:/hudson/userContent/some_javadoc/1.9.16/ - Session: Disconnecting
scp://somehost.somecompany.com/c:/hudson/userContent/some_javadoc/1.9.16/ - Session: Disconnected
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error uploading site Embedded error:
The host was not known and was not accepted by the configuration: somehost.somecompany.com reject HostKey: somehost.somecompany.com
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------
[INFO] Total time: 31 seconds [INFO] Finished at: Fri Nov 19 10:19:36 CST 2010
[INFO] Final Memory: 83M/199M
[INFO] ------------------------------------------------------------------------
I have the server and the credentials in the settings.xml. I have also specified the site in the distribution management section of the pom.xml.
Any help regarding this will be appreciated.
Upvotes: 4
Views: 3524
Reputation: 139931
This really has nothing to do with Maven or the release plugin per se - somehost.somecompany.com
is refusing your connection. Are you positive that these credentials work on their own?
You can try launching Maven with the -X
flag to have it spit out all of it's debugging information, hopefully this plugin will be logging more helpful information about what it is doing as a part of attempting to make this connection.
Upvotes: 0