3.6. Reference the JPA Runtime from the "App" Project

Either the commandline or the webapp project, update the <dependencies> section to reference the new JPA implementations:

<dependencies>
  ...
  <dependency>
    <groupId>${project.groupId}</groupId>
    <artifactId>xxx-jpa-service</artifactId>
  </dependency>
  ...
</dependencies>

This will transitively bring in the JPA Objects runtime libraries.

In addition, you will want to run a couple of tools that are used to deploy the application (see Chapter 7, Deploying JPA Objects for more details). The commandline app is probably as good a place as any to reference these tools. Therefore, also add in:

<dependencies>
  ...
  <dependency>
    <groupId>org.starobjects.jpa</groupId>
    <artifactId>tools</artifactId>
  </dependency>
  ...
</dependencies>