Version 8 (modified by yxin, 11 years ago)

--

Eclipse Setup

This page describes how to setup an eclipse development environment to be used with the Orca project.

1. Download and install Eclipse from http://www.eclipse.org/downloads/. You can choose either Eclipse IDE for Java EE Developers or Eclipse IDE for Java Developers.

2. In addition to the standard Eclipse installation you will need the following eclipse plugins:

  • Subclipse (http://subclipse.tigris.org/). This plugin integrates subversion source control into eclipse. Make sure you choose a version compatible with your subversion command line client. Version 1.4.* uses subversion 1.5.* file formats and is incompatible with subversion 1.4.* file formats. Version 1.0.* work only with subversion 1.4.*. Be careful, which version you end up installing, since version incompatibility can cause a lot of headaches later.
  • m2eclipse (http://m2eclipse.codehaus.org/). This plugin integrates maven into eclipse.

3. Before you can start editing an Orca project, you must import it into your eclipse workspace. You can checkout the project directly using eclipse or using the subversion command line client. The instructions here assume that you have checked out the required projects using the command line client. To import an existing Orca project into eclipse do the following:

  • Click on File\Import...
  • Expand the General tab and select Maven Projects. Click Next
  • Use the Browse button to navigate to the directory containing the POM file (pom.xml) of the project you want to import. Click OK. The dialog window should show the project(s) you have selected for import.
  • Click on Advanced and make sure that both Resolve Workspace projects and Separate projects for modules are selected. Add the following to the Name template field: '[groupId].[artifactId]'.
  • Click on Finish

The project should start importing and Eclipse will rebuild the workspace as needed.


When installing Eclipse on a CentOS 5.2 machine note the following:

  • Eclipse 3.2 is the only version currently supported by CentOS repositories.
  • Follow the Maven (m2eclipse) installation instructions for Eclipse 3.2 closely.
  • Use the http://m2eclipse.sonatype.org/update-dev/ for maven plugin instead of the release build

When installing e2eclipse in Ubuntu 8.10:

  • Following above notes on CentOS
  • Use Sun Java JDK 1.5, instead of the default gcj
    • sudo gedit /etc/eclipse/java_home
    • move '/usr/lib/j2sdk1.5-sun' to be the first line
  • Switch to sun 1.5 system-wide
    • download and install 1.5 (from the update manager)
    • see it in /usr/lib/jvm
    • sudo update-alternatives --config java (javac, javadoc)
    • Or change $JAVA_HOME (JAVA_HOME="/usr/lib/jvm/java-1.5.0-sun")
    • and $PATH (PATH=.:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH)