推送代码时,我正在使用 Gitlab_ci 触发 maven 脚本。
脚本执行:
mvn 编译
[...]
[INFO] project ............................................ SUCCESS [1.312s]
[INFO] project-api ........................................ SUCCESS [1.416s]
[INFO] project-api-impl ................................... SUCCESS [0.329s]
[INFO] project-webapp ..................................... SUCCESS [0.192s]
[INFO] project-webapp-exec ................................ SUCCESS [0.026s]
[INFO] project-webapp-it .................................. SUCCESS [2.052s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
mvn tomcat7:部署
[INFO] project............................................ SUCCESS [1.840s]
[INFO] project-api ........................................ SUCCESS [2.524s]
[INFO] project-api-impl ................................... FAILURE [0.257s]
[INFO] project-webapp ..................................... SKIPPED
[INFO] project-webapp-exec ................................ SKIPPED
[INFO] project-webapp-it .................................. SKIPPED
我收到以下错误:
[错误] 无法在项目 project-api-impl 上执行目标:无法解析项目 eu.project:project-api-impl:jar:0.6-DEVELOPMENT 的依赖项:找不到 eu.project:project-api:jar:http://repo.maven.apache.org/maven2中的 0.6-开发
由于项目构建成功(创建了 WAR),我无法理解为什么在执行部署时构建失败。
[另外,我不确定是否将其标记为作业。该作业的目标是创建一个 tomcat Web 应用程序并手动部署到服务器进行测试。由于 maven / 持续集成不是必需的,我相信这不应该被标记为作业问题]