【发布时间】:2021-05-27 13:41:25
【问题描述】:
我们已经在 GitLab 中配置了一个 monorepo。结构是:
-project1
-pom.xml
-project2
-pom.xml
-project3
-pom.xml
-project4
-pom.xml
-settings.xml
-gitlab-ci.yaml
管道看起来像:
- mvn clean install -f project1/pom.xml -s settings.xml -DskipTests=true -DskipIT=true --batch-mode
- ./jfrog rt mvn "clean install -f project1/pom.xml -s settings.xml -DskipTests=true
-DskipIT=true --batch-mode "artifactory_configuration.yml --build-name=xxxx --build-number=$CI_JOB_ID
Settings.xml:
<mirrors>
<mirror>
<id>ecd-central</id>
<mirrorOf>*</mirrorOf>
<url>http://repository111.int/content/groups/public-ecd-2.0-cdf</url>
</mirror>
</mirrors>
似乎当 jfrog 命令运行时,它忽略了镜像,任何想法为什么:
Failed to read artifact descriptor for org.apache.felix:maven-bundle-plugin:jar:2.4.0:
Could not transfer artifact org.apache.felix:maven-bundle-plugin:pom:2.4.0 from/to
artifactory-release (http://swf-artifactory.int/artifactory/com.fc-snapshot): transfer failed
for http://swf-artifactory.int/artifactory/com.fc-snapshot/org/apache/felix/maven-bundle-
plugin/2.4.0/maven-bundle-plugin-2.4.0.pom, status: 409 Conflict -> [Help 2]
【问题讨论】:
标签: gitlab-ci artifactory jfrog-cli jfrog