With new versions of Eclipse old m2e plugins have become absolute now you need to install eclipse plugins from eclipse market place. Follow below steps to install m2e plugins along with required GWT plugins. I have tried below steps with Eclipse (Kepler)
- Install
GWTeclipsepluginHelp->Eclipse Marketplace. Search with stringGWTinstallGoogle Plugin for eclipse 4.3. - Install maven plugin open
Eclipse Marketplaceand search form2e-wtplook forMaven Integration for Eclipse WTP Juno (1.0.1)and install it - Other maven integration plugins open
Eclipse marketplaceand search form2elook forAPT M2E ConnectorandGWT M2E Connectorinstall both the plugins.
With above plugins installed before importing your maven project. I tend to make sure I use same maven installation and configuration that I use for command line maven build. When you install m2e eclipse plugin for maven it comes with default maven installation. To change your maven installation to same as that of command line maven. Follow below steps.
- Open
Window->Preferences“Preferences” window will be open. - Expand
Mavenlabel on left side panel. - Select
Installationson right hand side panel you will seeembeddedmaven installation selected. - Click on
Addbutton directory window will be prompted. Select home folder of your maven installation and clickOk. - With addition of your installed maven installation. Make sure check mark is marked on your installed maven installation and then click on
OK
To import your maven project inside eclipse follow below steps.
Note: Before importing your eclipse projects make sure you make a complete build from command prompt.
- Select
File->Import - Expand
Mavenand selectExisting Maven Projectsand click onNext. - Click on
Browsebutton on next screen folder explorer will appear. - Select your project’s parent folder which contains the
pom.xml. - Next follow next screens as next screens varies based on maven plugins used in your project. Sometimes it may take some time, but be patient and allow
eclipseto complete it (in some cases where you are using maven plugin in yourpom.xmlm2ewill try to locate respectiveeclipseplugin to achieve same task fromeclipse. If it fails to find one it will try to locate ineclipsemarket place and if it is there user will be prompted to install the same).