我在哈德森上使用maven发布插件。我正在尝试发布该项目。一切正常,直到发布过程尝试进行站点部署。当它尝试这样做时,maven因scp连接拒绝错误而失败。
这是日志:
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] ------------------------------------------------------------------------
我在settings.xml中有服务器和凭据。我还在pom.xml的分发管理部分中指定了该站点。
对此有任何帮助将不胜感激。
答案 0 :(得分:1)
这与Maven或发布插件本身无关 - somehost.somecompany.com
拒绝您的连接。您是否肯定这些凭证可以自行运作?
你可以尝试使用-X
标志启动Maven,让它吐出所有的调试信息,希望这个插件会记录更多有用的信息,告诉它在尝试建立连接时所做的工作