Maven 站点部署失败,SCP 连接被拒绝 - Windows
我在 hudson 上使用 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 的分发管理部分指定了该站点。
任何有关此的帮助将不胜感激。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这实际上与 Maven 或发布插件本身无关 -
somehost.somecompany.com
拒绝您的连接。您确信这些凭证可以单独发挥作用吗?您可以尝试使用
-X
标志启动 Maven,让它吐出所有调试信息,希望这个插件能够记录更多有关它正在做什么的有用信息,作为尝试实现此目标的一部分联系。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.