---
title: "maven构建web工程"
author: "ynp"
date: "2016-04-22T09:11:36Z"
tags: []
categories: ["企业架构"]
slug: "maven-web"
draft: false
lastmod: "2016-04-22T09:11:36Z"
id: 2293039
url: "https://ynp.iteye.com/blog/2293039"
---

maven构建web工程

---》创建maven工程
![](http://dl2.iteye.com/upload/attachment/0116/8795/deec5e43-f9ac-3855-82f2-320bbc5cf3d9.png)

![](http://dl2.iteye.com/upload/attachment/0116/8797/80e30b03-5b42-3702-808f-5cf78e7d43ad.png)



---》用到3.0的特性，可以如下修改


![](http://dl2.iteye.com/upload/attachment/0116/8799/3d8d3846-ec8e-34e2-8c0f-63838fa8f091.png)


---》打成war包需要加入如下文件夹，运行clean package 打成war

![](http://dl2.iteye.com/upload/attachment/0116/8801/9c5176c5-6d13-3cb7-9688-aac08e52aaf6.png)


---》结构如下

![](http://dl2.iteye.com/upload/attachment/0116/8803/a1ff0dcc-4950-300d-8854-22a2f82392a1.png)


![](http://dl2.iteye.com/upload/attachment/0116/8805/a99d6424-ed1f-3323-b385-6b82e2017b77.png)