A.3. Run the JPA Archetype

We can run the archetype either using a wizard within Eclipse, or outside Eclipse and then import (similar to the steps in Section A.1, “Obtain the Claims Application”). To use the wizard:

Maven will now generate four new projects in your workspace, as shown below:

Running through these in detail:

Before we go any further, this would be a good time to check database connectivity.

Now, use Run > Run Configuration... to bring up the list of configurations, and navigate to the dba - Ping - PostgreSQL launch configuration (from the claims-jpa-dba project). Inspect the command line arguments. If you are using the PostgreSQL database (as set up in Section A.2, “Set up a Relational Database”) then the arguments should be correct, but if using your own database then you'll need to adjust them.

When ready, choose Run to run the configuration. In the Console view an "OK" message should appear. If you don't, then you'll need to investigate further (Ping is a very simple class so the problem will almost certainly be in your setup somewhere).

Now let's update the existing projects to reference the newly generated projects.