Before beginning development, configure the development environment to work with the application. In the case of GreenPages this means Maven and Eclipse.
The following instructions are most easily followed using the Java perspective rather than the Java EE perspective. If not already in the Java perspective, switch to the Java perspective in the SpringSource Tools Suite using the Open Perspective menu:
In this step a reference to the dm Server instance is created in STS that the GreenPages application will integrate with.
In STS open Add… to create a new instance of the dm Server. In the dialog that opens, select the SpringSource dm Server runtime environment (v2.0) and check the box to Create a new local server. When complete, press Next.
→ → . Select
In the next dialog, set the SpringSource dm Server installation directory field to the
value of $DMS_HOME
and
check that the JRE: option is set to Java 1.6 or above, in case this is not
the workbench default. When complete, press Finish.
After returning to the Preferences window, press OK to return to Eclipse. The Servers view has opened and now shows an instance of SpringSource dm Server in it.
There will also be a Servers project created. Proceed to the next step.