美文网首页
gitlab-runner运行maven项目报错

gitlab-runner运行maven项目报错

作者: 与狼共舞666 | 来源:发表于2021-08-02 20:14 被阅读0次

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

相关文章

网友评论

      本文标题:gitlab-runner运行maven项目报错

      本文链接:https://www.haomeiwen.com/subject/hhvjvltx.html