使用eclipse创建maven web工程

作者:朱金灿

来源:https://blog.****.net/clever101

      使用maven的一大好处是可以方便地管理依赖库,具体是使用编辑工程的pom.xml文件来配置依赖库。下面具体谈谈如何使用eclipse创建maven web工程。

1.选择”File”——>”New”——>“Maven Project”,如下图:

使用eclipse创建maven web工程

2. 选择“maven-archetype-webapp”,如下图:

使用eclipse创建maven web工程

3. 填写工程名,如下图:

使用eclipse创建maven web工程

4. 设置tomact服务器,如下图:

使用eclipse创建maven web工程

使用eclipse创建maven web工程

5. 运行效果如下:

使用eclipse创建maven web工程

参考文献:

1.构建Maven项目的完整过程--普通web项目(Eclipse)