1

We are using Nexus to proxy remote maven repositories. It works well except with the maven repository of milton.io.

If I add the repository to my maven settings.xml without using Nexus it works well, artifacts are correctly pulled:

<repository>
   <id>milton-repo</id>
   <url>http://milton.io/maven/</url>
</repository>

Now if I use Nexus adding the repository as a 'Proxy repository' it does not work. Nexus cannot pull the required artifacts:

Failure to find io.milton:milton-server-ce:jar:2.6.4.0 in http://xxx:8180/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced

Any idea why Nexus cannot proxy this repository ?

EDIT: If I look in Nexus log if have this:

2015-03-17 11:05:05,779+0100 INFO  [ar-4-thread-4] admin org.sonatype.nexus.proxy.maven.routing.internal.RemoteScrapeStrategy - Not possible remote scrape of M2Repository(id=milton), no scraper succeeded.

Note: the proxy repository has correctly been added to the public group.

4

1 回答 1

0

我看到这台服务器的性能极差,这个请求花了将近一分钟的时间来处理:

http://milton.io/maven/io/milton/milton-server-ce/2.6.4.0/milton-server-ce-2.6.4.0.jar

因此,您可能会在 Nexus 中达到存储库的默认读取超时 20 秒。

检查nexus.log 文件看是否有超时异常。如果有,则增加存储库配置中“http 请求设置(可选)”中的超时时间。60 秒的超时和 3 次重试似乎可行。

于 2015-03-16T16:49:08.900 回答