Import Existing Maven in Eclipse as WTP

2019-04-29 15:52发布

问题:

I had to reinstall my Eclipse and now i have to import all the existing projects into the new workspace. The previous version of Eclipse was Galileo, this version is Indigo. The plugins are installed, but after the "Import Existing Maven Project" the projects are not showing as WTP (WebApp Project)...

Do i need something else to setup or config?

Thanks a lot!

回答1:

Yes, you need to install additional software. The "Maven Integration for Eclipse WTP"

See here: http://marketplace.eclipse.org/node/96737

Update Site: http://download.jboss.org/jbosstools/updates/m2eclipse-wtp/



回答2:

You can convert a maven project to a Eclipse WTP project. After that you only need to import the project as any other project.

The command to convert is:

mvn eclipse:eclipse -Dwtpversion=2.0