Skip to content
Leejjon edited this page Jun 7, 2015 · 6 revisions
  • Download the Java EE version of Eclipse http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/keplersr1

  • Install the Android plugin (ADT) http://developer.android.com/tools/sdk/eclipse-adt.html

  • Install the GWT plugin and optionally Google App Engine https://developers.google.com/eclipse/docs/getting_started

  • Install the M2e plugin and M2e Android plugin from the Eclipse marketplace In Eclipse, click on Help > Eclipse Marketplace and search for it.

  • Setting the correct maven installation In Eclipse, go to Window > Preferences > Maven > Installations, and click on the Add button if you already had maven installed to select that installation.

  • Import the projects into Eclipse by clicking File > Import > Existing Maven Projects.

  • Do not try to run the test-html project from Eclipse yet. To make the test-html project runnable from within Eclipse, right click on the project, and choose properties. Go to the Google > Web Application tab, and make sure "This project has a WAR directory is checked." By default this directory is src/main/webapp, change it to target/webapp. You don't want the GWT to copy the assets into your source folder. Also enable the "Launch and deploy from this directory" setting.

Now you should be able to run the desktop, android and GWT projects from Eclipse. I recommend not actually using the maven update function from the eclipse maven plugin to do maven builds. I had problems with my M2e plugin not recognizing some of the maven plugins used in my pom.xml's. Just compile the projects via the commandline like described here. After they're build succesfully, refresh your projects in Eclipse and you can run them again.