Reference Link: http://blog.sina.com.cn/s/blog_4f925fc30102ed5b.html
premise : Before executing the MVN eclipse:eclipse command, there must be a pom. The XML file works, otherwise
MVN eclipse:eclipse command will be error, the general error message is required to have a pom.xml file of the project. First, the Eclipse Engineering command is as follows: C:\Documents and SETTINGS\ADMINISTRATOR>F:F:\>CD F:\SoftWare\Maven\MavenWebAppTest\ S3H3WEBWSF:\SOFTWARE\MAVEN\MAVENWEBAPPTEST\S3H3WEBWS>MVN Eclipse:eclipse
Then import this project into Eclipse, right-click the project name-->myeclipse-->add Web project capabilities-> Modify the Web root address (the point "Browse" button is specified as the src/under the current workspace Main/webapp folder), click Finish to import MyEclipse after the directory as follows:
Note: The Tomcat plugin allows MyEclipse to be built with the MAVEN plugin to run in MyEclipse embedded Tomcat. Baidu Search: "MyEclipse run Maven project" can find a lot of myeclipse under the use of MAVEN management engineering articles. http://b-l-east.iteye.com/blog/1246482http://blog.csdn.net/oyzl68/article/details/8119086http://hi.baidu.com/ ae6623/item/764d67036a9c6ccb75cd3c54 Baidu Search: "maven combat" can find a PDF document about Maven combat. Http://wenku.baidu.com/view/80e4c3136edb6f1aff001fdd.htmlhttp://ishare.iask.sina.com.cn/f/20771220.html?from= Like second, turn IntelliJ Idea Project command is as follows: C:\Documents and SETTINGS\ADMINISTRATOR>F:F:\>CD F:\SoftWare\Maven\ MAVENWEBAPPTEST\S3H3WEBWSF:\SOFTWARE\MAVEN\MAVENWEBAPPTEST\S3H3WEBWS>MVN Idea:idea
Then import this project into IntelliJ idea, the directory after importing IntelliJ idea is as follows:
"Go" Maven3 the Web project created by the command line into the project of Eclipse and IntelliJ idea