Versions Compared

Key

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

...

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

Importing Maven Projects

Instead of checking out and creating individual projects, Eclipse can also be configured to import multiple Maven modules at once.

To do this, follow these steps.

  1. Checkout the trunk using SVN. 
  2. In Eclipse, go to File > Import > and then select Maven > Existing Maven Projects from the tree menu.
  3. Click Next and then browse to the path of the trunk under the Root Directory field. 
  4. All of the modules will show in the window now.  You can leave all of these checked, unless you do not want some modules to be imported as projects, in which case uncheck those.
  5. In the same panel, before continuing, click Add projects to working set and create an HPS working set to which the new projects will be assigned.
  6. To create the projects, click Next and Eclipse will automatically import all the selected modules into your workspace as projects with the Maven and Java natures.

Now all of the Maven modules in HPS Java are imported into your workspace.

Working Sets

To enable commands in the toolbar which will allow showing or hiding projects by their working set, go to Window > Customize Perspective and click the boxes for Window Working Set and Working Set Manipulation under Command Groups Availability.

The working set toolbar should be added to your dock now.  There should be an icon (looks like two folders) where you can select the working sets to view e.g. HPS.  This will filter the Package Explorer and similar views to only show projects from that working group. 

The upside down triangle in the upper right of the Package Explorer or Project Explorer is the View Menu and can be used to filter out or include working sets in that particular component.

Maven Run Configuration

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

...

There are other places where this can be configured as well, for various types of editors.  This link provides useful answers on where all these settings are located and how they can be configured to use spaces only.

Importing Maven Projects

Instead of checking out and creating individual projects, Eclipse can also be configured to import multiple Maven modules at once.

To do this, follow these steps.

  1. Checkout the trunk using SVN. 
  2. In Eclipse, go to File > Import > and then select Maven > Existing Maven Projects from the tree menu.
  3. Click Next and then browse to the path of the trunk under the Root Directory field. 
  4. All of the modules will show in the window now.  You can leave all of these checked, unless you do not want some modules to be imported as projects, in which case uncheck those.
  5. In the same panel, before continuing, click Add projects to working set and create an HPS working set to which the new projects will be assigned.
  6. To create the projects, click Next and Eclipse will automatically import all the selected modules into your workspace as projects with the Maven and Java natures.

Now all of the Maven modules in HPS Java are imported into your workspace.

Working Sets

To enable commands in the toolbar which will allow showing or hiding projects by their working set, go to Window > Customize Perspective and click the boxes for Window Working Set and Working Set Manipulation under Command Groups Availability.

The working set toolbar should be added to your dock now.  There should be an icon (looks like two folders) where you can select the working sets to view e.g. HPS.  This will filter the Package Explorer and similar views to only show projects from that working group. The upside down triangle in the upper right of the Package Explorer or Project Explorer is the View Menu and can be used to filter out or include working sets in that particular component.