/root/.jenkins/workspace/tuling-api-getway-luban/WebContent/WEB-INF/web.xml‘ does not exist

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project tuling-api-getway-luban: The specified web.xml file '/root/.jenkins/workspace/tuling-api-getway-luban/WebContent/WEB-INF/web.xml' does not exist -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[JENKINS] Archiving /root/.jenkins/workspace/tuling-api-getway-luban/pom.xml to tuling-api-getway-luban/tuling-api-getway-luban/1.0-SNAPSHOT/tuling-api-getway-luban-1.0-SNAPSHOT.pom
[DeployPublisher][INFO] Build failed, project not deployed
Finished: FAILURE

 

我的是用Jenkins去远端去代码,用maven打包放入Tomcat时报错了,项目缺少web.xml

本着你缺啥,我补啥的原则,给你配置上还不成了

 

我新建了一个 web项目,将webapp整个文件拷贝在main下,然后重新提交远端,Jenkins打包成功

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章