Maven 站点部署失败,SCP 连接被拒绝 - Windows

发布于 2024-10-03 13:35:57 字数 1386 浏览 1 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泛滥成性 2024-10-10 13:35:57

这实际上与 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文