---
title: "maven eclipse web工程支持参数"
author: "zhwj184"
date: "2013-04-10T15:59:36Z"
tags: []
categories: ["开源软件"]
slug: "maven-eclipse-web"
draft: false
lastmod: "2013-04-10T16:09:19Z"
id: 1845165
url: "https://zhwj184.iteye.com/blog/1845165"
---

eclipse maven工程加上参数-Dwtpversion=2.0就能够支持eclipse识别这个web工程。

 

To convert the Maven web project to support Eclipse IDE, in terminal, navigate to “CounterWebAPp” folder, issue this command :

```
mvn eclipse:eclipse -Dwtpversion=2.0
```

You must add the `-Dwtpversion=2.0` argument to make it as a Eclipse web project. Imports it into Eclipse IDE, a globe icon on top of project, means this is a web project in Eclipse.

 

![project structure](http://www.mkyong.com/wp-content/uploads/2011/04/project-structure.png)