Eclipse+Maven创建webapp项目(二)
Eclipse+Maven创建webapp项目<二>
1、开启eclipse,右键new——》other,如下图找到maven project

2、选择maven project,显示创建maven项目的窗口,此次不勾选Create a simple project,直接next,如图所示:

3、在Filter中搜索webapp,选择如图所示,并next:

4、输入maven项目的基本信息,如下图所示:

5、完成maven项目的创建,生成相应的webapp项目结构,如下所示,此处有部分结构是项目不需要的,我们需要去掉:

6、选择项目,右键选择Properties,进入属性页面,选择到Maven菜单下,如下图所示:

7、选择java版本为1.7,并去掉其他两项,如下图:

8、点击ok之后,再次回到项目结构,此时项目结构比较清晰,符合我们想要创建的maven项目:

9、创建没有显示的源代码文件夹,如下图所示:

10、最后得到完成的maven webapp项目结构如下:

转载来源http://www.cnblogs.com/candle806/p/3439883.html
Eclipse+Maven创建webapp项目<二>
1、开启eclipse,右键new——》other,如下图找到maven project

2、选择maven project,显示创建maven项目的窗口,此次不勾选Create a simple project,直接next,如图所示:

3、在Filter中搜索webapp,选择如图所示,并next:

4、输入maven项目的基本信息,如下图所示:

5、完成maven项目的创建,生成相应的webapp项目结构,如下所示,此处有部分结构是项目不需要的,我们需要去掉:

6、选择项目,右键选择Properties,进入属性页面,选择到Maven菜单下,如下图所示:

7、选择java版本为1.7,并去掉其他两项,如下图:

8、点击ok之后,再次回到项目结构,此时项目结构比较清晰,符合我们想要创建的maven项目:

9、创建没有显示的源代码文件夹,如下图所示:

10、最后得到完成的maven webapp项目结构如下:

转载来源http://www.cnblogs.com/candle806/p/3439883.html