gitlab-runner运行maven项目报错

2021-08-02  本文已影响0人  与狼共舞666

gitlab-runner运行maven项目包如下错误

[40](https://git.rhassurance.com/gengfeng/simple-maven-app/-/jobs/350#L40) [ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [central (http://10.3.23.202:8081/artifactory/rh-libs-release, default, releases), snapshots (http://10.3.23.202:8081/artifactory/rh-libs-snapshot, default, releases+snapshots)] -> [Help 1]

排查问题的过程排除是网络原因,stackoverflow上issue,上链接issue
大致2中解决方案:用低版本的maven;在settings.xml中的设置对应仓库url参数blocked=false

上一篇 下一篇

猜你喜欢

热点阅读