【发布时间】:2021-11-05 19:57:43
【问题描述】:
当我触发我的应用程序的构建管道时,我收到了未能执行目标错误。但是,当我在本地构建这个应用程序时,我没有得到这样的异常。当我只通过 GitLab 构建时,我会遇到这种情况。
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project sample-app: Execution default-clean of goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean failed: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-clean-plugin:jar:2.5 -> org.apache.maven:maven-plugin-api:jar:2.0.6: Failed to read artifact descriptor for org.apache.maven:maven-plugin-api:jar:2.0.6: Could not transfer artifact org.apache.maven:maven-plugin-api:pom:2.0.6 from/to central (https://repo.maven.apache.org/maven2): Connection reset -> [Help 1]
【问题讨论】:
-
如果可以,请使用code format 将代码、错误等放入帖子本身,而不是上传图片。这有助于使您的问题更具可读性,并防止图像被删除时出现问题。
标签: maven gitlab continuous-integration gitlab-ci pipeline