bitbucket管道无法下载maven工件

问题描述 投票:1回答:1

使用bitbucket管道遇到以下问题,但无法找出它可能发生的原因 - 在构建过程中我经常看到以下错误:

Downloading: https://repo.maven.apache.org/maven2/org/springframework/security/spring-security-test/4.0.3.RELEASE/spring-security-test-4.0.3.RELEASE.pom
Oct 27, 2017 8:19:37 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request to {s}->https://repo.maven.apache.org:443: Connection reset
Oct 27, 2017 8:19:37 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request to {s}->https://repo.maven.apache.org:443
Oct 27, 2017 8:19:37 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request to {s}->https://repo.maven.apache.org:443: Connection reset
Oct 27, 2017 8:19:37 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request to {s}->https://repo.maven.apache.org:443
Oct 27, 2017 8:19:37 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request to {s}->https://repo.maven.apache.org:443: Connection reset
Oct 27, 2017 8:19:37 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request to {s}->https://repo.maven.apache.org:443

Downloading: https://repo.maven.apache.org/maven2/org/bitbucket/radistao/test/before-after-spring-test-runner/0.1.0/before-after-spring-test-runner-0.1.0.pom
2/2 KB       

Downloaded: https://repo.maven.apache.org/maven2/org/bitbucket/radistao/test/before-after-spring-test-runner/0.1.0/before-after-spring-test-runner-0.1.0.pom (2 KB at 21.8 KB/sec)
[INFO] ------------------------------------------------------------------------

其他的libs下载得很好,在我将before-after-spring-test-runner库添加到pom.xml后问题就出现了。即使在完全repo清理之后,本地构建也会像往常一样从IDE和CLI运行。 有人能说出这两个事实之间可能存在什么联系? :)

maven bitbucket bitbucket-pipelines
1个回答
0
投票

在最后一次基础架构更新后,管道开始关闭闲置超过5分钟的空闲Maven连接。这会影响运行Maven并且花费的时间超过这段时间的任何构建,因为这样的构建将因“连接重置套接字异常”而失败。

运行集成测试后会触发Maven生命周期中的某些插件,唯一的解决方法是强制Maven在每个使用请求时使用新连接

mvn -Dmaven.wagon.http.pool=false clean install

但是,这会影响构建时间。

© www.soinside.com 2019 - 2024. All rights reserved.