触发Bitbucket Pipeline时出现以下错误:
[ERROR] Failed to execute goal on project gym:
Could not resolve dependencies for project groupId:artifact:jar:4.14.0: Failed to collect dependencies at net.sf.jasperreports:jasperreports:jar:6.2.1 -> com.google.zxing:core:jar:2.3.0:
Failed to read artifact descriptor for com.google.zxing:core:jar:2.3.0: Could not transfer artifact com.google.zxing:core:pom:2.3.0 from/to central (https://repo.maven.apache.org/maven2):
Connection reset -> [Help 1]
在maven中央存储库中找不到类似库com.google.zxing:core
的库,但是它存在:https://mvnrepository.com/artifact/com.google.zxing/core/2.3.0
当我尝试使用mvn clean install
(管道上定义的相同命令)从本地主机收集依赖项时,就会起作用。
有什么想法吗?
已更新 在本地主机上编译时,我可以看到以下日志:
Downloading from yyy-maven-s3-release-repo: s3://yyy-
Downloading from yyy-maven-s3-release-repo: s3://my-custom-repository/release/com/google/zxing/core/2.3.0/core-2.3.0.pom
Downloading from jitpack.io: https://jitpack.io/com/google/zxing/core/2.3.0/core-2.3.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/com/google/zxing/core/2.3.0/core-2.3.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/google/zxing/core/2.3.0/core-2.3.0.pom (3.0 kB at 97 kB/s)
Downloading from yyy-maven-s3-release-repo: s3://xxx-repository/release/com/google/zxing/core/2.3.0/core-2.3.0.jar
Downloading from jitpack.io: https://jitpack.io/com/google/zxing/core/2.3.0/core-2.3.0.jar
Downloading from central: https://repo.maven.apache.org/maven2/com/google/zxing/core/2.3.0/core-2.3.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/com/google/zxing/core/2.3.0/core-2.3.0.jar (529 kB at 3.9 MB/s)
由于某种原因,它被下载了两次。
在Bitbucket端,日志如下:
Downloading: s3://my-custom-repository/release/com/google/zxing/core/2.3.0/core-2.3.0.pom
Downloading: https://jitpack.io/com/google/zxing/core/2.3.0/core-2.3.0.pom
Downloading: https://repo.maven.apache.org/maven2/com/google/zxing/core/2.3.0/core-2.3.0.pom
Downloading: http://jasperreports.sourceforge.net/maven2/com/google/zxing/core/2.3.0/core-2.3.0.pom
Downloading: http://jaspersoft.artifactoryonline.com/jaspersoft/third-party-ce-artifacts/com/google/zxing/core/2.3.0/core-2.3.0.pom
之后,我可以看到:
Progress (1): 2.2/3.2 kB
Progress (1): 3.2 kB
但是我不知道这行是指zxing依赖性还是另一种。