Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Project Development in Eclipse

...

Before you start to setup Eclipse, you should follow the instructions at Installing HPS Java to install locally the HPS Java trunk, which contains the various modules that will be loaded as projects.

Installing Eclipse

The "Eclipse Standard" distribution can be downloaded You can download an installation bundle from the Eclipse downloads areasite.

The Subversive plugin provides SVN access through the IDE and can be installed through this URL:

No Format
http://download.eclipse.org/technology/subversive/1.1/update-site/

When Eclipse reboots select and install an appropriate SVN connector for your system, which should be the pure Java version matching the version of the SVN client that you have installed on your operating system (either 1.6, 1.7 or 1.8).

After this, install the m2e plugin for Maven support using this update site URL:

...

To install it, simply download the correct file for your operating system and use unzip or tar to unpack it.

It will create a directory called eclipse and you should run eclipse/eclipse to start the application.

This program can also be setup as an application shortcut in your window manager, which on my Linux system looks something like this.

Image Added

The actual paths will of course depend on where you have installed Eclipse.

...

Configuring Plugins

Subversive

...

Warning
titleSubversion Versions

Subversion client versions are unfortunately not forward or backward compatible between minor releases.  In other words, you cannot checkout a project using a 1.6 client and then switch to using a 1.7 or 1.8 client.  For this reason, it is strongly recommended that the Subversive Connector you install matches the version which is installed already on your system.

Creating a New Java Project

...

To create a new project in Eclipse, you can select File > New > Java Project from the menu.  This will start a wizard for creating the new project.

...

Then click on the Finish button and the project should now show up in the Package Explorer within the Java View.

Building a Maven Project

It is useful to create a custom build configuration for executing Maven on the project.

...

This can be accomplished by creating a new Run Configuration which looks similar to this.

Image Modified

Notice that instead of an Eclipse variable pointing at the current project directory, the actual path to your HPS Java trunk is put under Base directory instead. 

...

When you click Run on this configuration, all of the modules will be installed and not just a single one.  This is useful for creating a new distribution jar with all your local changes included in it.

Creating a Single Project for All Modules

As an alternative to creating individual projects for each module in HPS Java, you may also create a single Eclipse project for the entire trunk.

To do this, you can follow the usual procedure of going to File > New > Java Project in the Eclipse menu.

Then instead of using the location of a module, the Location should be the base directory of the trunk.

In my local setup, this looks something like the following.

Image Removed

Now you can click Next and Finish and the new project should show in the Package Explorer.

Next you should make sure Eclipse knows this is a Maven project by right clicking on the project and selecting Configure > Convert to Maven Project.

The instructions under "Building a Project" should also work for building all of the modules with Maven.