通过 Nexus Repository Manager 访问 JBoss Repository 时出现问题

发布于 2024-11-07 15:33:23 字数 662 浏览 3 评论 0原文

我们使用 Nexus Repository Manager 作为我们的企业存储库管理器。 nexus 存储库管理器通过以下远程 URL 链接到 JBoss 存储库。

https://repository.jboss.org/nexus/content/repositories/releases/ 今天,当我检查 Nexus 时,我看到了以下 JBoss 消息 服务中 - 远程自动阻止且不可用。

当您的防火墙不允许您访问 JBoss url 时,通常会出现此消息。但是nexus能够访问maven中央仓库,这间接说明Proxy没有问题。

以下网址也会显示相同的消息
名称 URL 类型/策略
java.net - Maven 2 (http://download.java.net/maven/2/) 代理/发布
java.net-m1 (http://download.java.net/maven/1/) 代理/发布
Apache Snapshots (http://repository.apache.org/snapshots/) proxy/Snapshot

如果有人对此有任何想法,请回复。

We are using Nexus Repository Manager as our Corporate Repository Manager.
The nexus repository manager was linked to JBoss Repository with following remote url.

https://repository.jboss.org/nexus/content/repositories/releases/
Today when I checked the nexus, i saw following message for JBoss
In Service - Remote automatically blocked and unavailable.

This message generally comes when your firewall is not allowing you to access the JBoss url. But the nexus is able to access maven central repository, which indirectly tells that there is no problem in the Proxy.

The same message is also shown for following urls
Name URL Type/Policy
java.net - Maven 2 (http://download.java.net/maven/2/) proxy/Release
java.net-m1 (http://download.java.net/maven/1/) proxy/Release
Apache Snapshots (http://repository.apache.org/snapshots/) proxy/Snapshot

Please reply if any one has idea about it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

划一舟意中人 2024-11-14 15:33:23

Maven Central 没有重新定位,只是有一些新的方法来防止存储库“抓取”。如果 maven 使用绝对路径请求,它仍然会提供工件。因此,对于 Maven Central,您应该使用 URL http://repo1.maven.org/maven2/ 因为它是唯一一个有效的。正如您所指出的,search.maven.org(其中抓取工具被重定向)是完全不同的野兽,不能与 Maven 或 Nexus 一起用作远程存储库。

您应该检查为什么您的 Nexus 认为 Maven Central 无法访问。您在运行 Nexus 的主机和外部世界(互联网)之间是否有一些内部(可能是透明的)HTTP 代理?或者有其他方法阻止 Nexus 伸出援手?另外,也可能是网络问题(断电、断电)......并且 Nexus 只是阻止代理以防止连接泄漏。

Maven Central is NOT relocated, only has some new means preventing repository "scraping". It will still serve up artifacts if requested by maven using absolute paths. So, for Maven Central, you should use the URL http://repo1.maven.org/maven2/ as it's the only one working. As you noted, the search.maven.org (where scrapers are redirected) is totally different beast, not usable with Maven nor Nexus as remote repository.

You should rather check why your Nexus thought Maven Central is not reachable. Do you have some internal (maybe transparent) HTTP Proxy between host running Nexus and outer world (Internet)? Or some other means preventing Nexus reaching out? Also, it might be network issue (brownout, blackout) of the network.... and Nexus just blocked proxying to prevent connection leaks.

Saygoodbye 2024-11-14 15:33:23

检查以下项目:

  1. 服务器下,检查 http 代理是否已正确设置并经过身份验证
  2. 存储库下,检查公共存储库组是否具有 JBoss 存储库包含在配置选项卡下的有序组存储库列表中

Check the following items:

  1. Under Server check that the http proxy is set and authenticated properly
  2. Under Repositories check that the Public Repositories group has the JBoss repository included in the Ordered Group Repositories list under the Configuration tab
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文