您的位置:首页 > 其它

将普通maven项目改成maven web项目

2015-07-05 11:51 183 查看
1.修改pom属性packaging为war

<packaging>war</packaging>

2.修改propertoes--project faces



3.把WebContent下面两个目录 META-INF ,WEB-INF 直接剪切到src/main/webapp

4.右键properties--> Deployment Assembly

remove-->WebContent

add-->Floder-->next-->/src/main/webapp

add-->Java Build Path Entries--next-->maven dependencies

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: