http://b-l-east.iteye.com/blog/1246482
1.workspace down
mvn Archetype:generate-darchetypeartifactid=maven-archetype-webapp
- D:\STUDY\WORKSPACE4>MVN Archetype:generate-darchetypeartifactid=maven-archetype-webapp
- [INFO] scanning for projects ...
- ....
- [INFO] generating project in Interactive mode
- Define value for property ' GroupId ':: Com.xjd
- Define value for property ' Artifactid ':: MyWebApp
- Define value for property ' version ': 1.0-snapshot::
- Define value for property ' package ': Com.xjd::
- Confirm Properties Configuration:
- GROUPID:COM.XJD
- Artifactid:mywebapp
- Version:1.0-snapshot
- PACKAGE:COM.XJD
- y:: Y
- ....
- [INFO] BUILD SUCCESS
- [INFO]-----------------------------------------
- [INFO] Total time:1:46.199s
- [INFO] finished at:wed Nov 15:02:18 CST
- [INFO] Final memory:6m/15m
2. Import the MAVEN project
3. Add Web Project
Select Project-->myeclipse-->project capabilities-->add Web Project Capabilites
Copy, please refer to the original article Okay, Trouble
MyEclipse + maven Developing a detailed configuration process for Web engineering