Nexus Repo使用Maven提供503,但不使用浏览器 [英] Nexus Repo gives 503 with Maven but not with browser

查看:336
本文介绍了Nexus Repo使用Maven提供503,但不使用浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在远程服务器上创建了一个Nexus存储库.如果我使用本地计算机上的浏览器,则可以看到pom文件.但是,当我尝试mvn clean编译时,我会看到...

I just created a Nexus repo on a remote server. If I go to a browser on my local computer I see the pom file just fine. However, when I try mvn clean compile I see...

http://server:8081/nexus/content/repositories/thirdparty/com/class/module/1.0.0/module-1.0.0.pom. Return code is: 503, ReasonPhrase:Service Unavailable. ->

我知道503表示它无法获得该服务,但是这使我很恼火,因为我在浏览器中看到了它.

I know 503 means it can't get the service, but that throws me because I see it fine in the browser.

我在我的settings.xml中配置了代理,如果删除对第三方依赖项的引用,则可以很好地处理中央部门.

I have the proxy configured in my settings.xml, and if I remove the referance to the third party dependency I get the central deps fine.

有什么想法吗?

推荐答案

问题与代理有关...

Problem was related to the proxy...

当我在Settings.xml中配置代理时,它对于外部站点非常有用,但是,它破坏了内部站点(例如我的联系仓库).因此,我从settings.xml中删除了该代理,将其添加到我的nexus服务器中,然后将该中央存储库镜像到我的中央存储库的nexus版本.

When I configured the proxy in my Settings.xml it worked great for external sites, however, it screwed up internal sites (like my nexus repo). So I removed the proxy from my settings.xml, added it to my nexus server, and then mirrored the central repo to my nexus version of central repo.

现在一切都按预期进行...

Now everything works as expected...

这篇关于Nexus Repo使用Maven提供503,但不使用浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆