I have three maven modules:
Client
Server
RMIInterface
My problem is, that the Client and Server needs the RMIInterface, but the RMIInterface also needs some classes from the server project.
Now I get an error because the Server and the RMIInterface generate a dependency cycle.
RMIInterface pom
<parent>
<artifactId>BibliothekWS2017</artifactId>
<groupId>at.fhv.team05</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>RMIInterface</artifactId>
<!--RMI Interface Dependency-->
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>BibliothekWS2017Server</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
Dependency in Server and Client
<!--RMI Interface Dependency-->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>RMIInterface</artifactId>
<version>${project.version}</version>
</dependency>