IDEA maven打包失败

来源:2-3 Hello Spring Security

慕斯4052574

2017-12-28

[INFO] imooc-security ..................................... SUCCESS [  0.002 s]

[INFO] imooc-security-core ................................ SUCCESS [  2.153 s]

[INFO] imooc-security-app ................................. SUCCESS [  0.069 s]

[INFO] imooc-security-browser ............................. SUCCESS [  0.061 s]

[INFO] imooc-security-demo ................................ FAILURE [  1.770 s]

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 4.377 s

[INFO] Finished at: 2017-12-28T17:33:47+08:00

[INFO] Final Memory: 25M/283M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project imooc-security-demo: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]


写回答

1回答

JoJo

2017-12-30

demo项目你是war打包的吧,改成按jar打包应该就好了。

1
0

Spring Security技术栈开发企业级认证与授权

Spring Security技术栈,REST风格开发常见接口,独立开发认证授权模块保证REST服务安全

2662 学习 · 1561 问题

查看课程