3.3. Create a new Maven submodule for JPA Service (Repository) Implementations

The new xxx-service-jpa submodule should have a pom.xml that looks something like:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <name>JPA Service Implementations</name>
  <artifactId>xxx-service-jpa</artifactId>  <!-- CHANGE -->

  <parent>
    <groupId>yyy</groupId>                  <!-- CHANGE -->
    <artifactId>xxx</artifactId>            <!-- CHANGE -->
    <version>zzz</version>                  <!-- CHANGE -->
  </parent>

  <dependencies>

    <!-- project modules -->
    <dependency>
      <groupId>yyy</groupId>                <!-- CHANGE -->
      <artifactId>xxx-dom</artifactId>      <!-- CHANGE -->
    </dependency>

    <!-- jpa objects -->
    <dependency>
      <groupId>org.starobjects.jpa</groupId>
      <artifactId>runtime</artifactId>
    </dependency>

    <!-- postgres JDBC driver -->
    <dependency>
      <groupId>postgresql</groupId>
      <artifactId>postgresql</artifactId>
    </dependency>
 
    <!-- SLF4j binding (used by Hibernate) -->
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
    </dependency>

    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
    </dependency>

    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-nop</artifactId>
      <scope>test</scope>
    </dependency>

  </dependencies>
</project>