Setting up Eclipse IDE for opentaps 2

From Opentaps Wiki
Revision as of 17:50, 2 March 2012 by Sichen (talk | contribs)
Jump to navigationJump to search

If you use Eclipse IDE, here are some instructions on how to set up Eclipse for opentaps 2 development.

Maven

Go to Help menu, select Install New Software, and install Maven Integration for Eclipse from http://download.eclipse.org/technology/m2e/releases

Now use File > Import >> Existing Maven Projects to import your opentaps-2 project into Eclipse. If the "Finish" button on the "Select Maven Projects" page is not highlighted, then uncheck a pom.xml and check it again, then it should work.

If you get the error "opentaps-2 overlaps the location of another project: 'opentaps-2'", then delete the opentaps-2 project from Eclipse first (but not from the filesystem!) and re-import it into Eclipse as a Maven project.

If you are using Git for Eclipse as well, you can switch between Git Repository and Java view for your project.

Once you have Maven set up for eclipse, you can right click on the folder for opentaps-2 and under the "Run As" link find "maven install".

Sometimes after large changes, Projects in Eclipse may be broken due to significant changes in POMs. If a project is marked with a red !, then right click on it, and select from the context Maven->Update Project Configuration to update it.

Eclipse Formatting

For formatting consistency, change your tabs to spaces.