1,New Maven Project
1.1

1.2

1.3 选择maven-archetype-webapp

1.4 填写Group Id(包)和Artifact Id(项目名)
Group Id:项目组织唯一的标识符,对应的是项目的包的结构,是main目录里java的目录结构;
Artifact Id:是项目的唯一的标识符,对应的是项目的名称,是项目根目录的名称。

2,创建完成之后的项目结构

3,调整成Dynamic Web Project
3.1 右键—> Properties —>Project Facets —>Convert to faceted from... —> 选中Dynamic Web Module

3.2 调整之后的包的结构,如下:

3.3

3.4

3.5

3.6

3.7

3.8

4,发布测试
添加到tomcat,并发布


Maven新建web项目
原文:http://www.cnblogs.com/lemon-now/p/5123644.html