/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打包成功

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