This is my first project using Quarkus.
I made a multi-module project and in the parent pom I have this module structure:
<modules>
<module>domain</module>
<module>application</module>
<module>client</module>
</modules>
In my domain module I have my interfaces that are supposed to be implemented by the application and client modules. So I added the <dependency> in the application and the client modules, for implementing the domain interfaces.
But when I want to add the <dependency> of the application module in my domain it doesn't work and when I build I have this error :
[ERROR] [ERROR] The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='com.test.name:application:0.0.1-SNAPSHOT'}' and 'Vertex{label='com.test.name:domain:0.0.1-SNAPSHOT'}' introduces to cycle in the graph com.test.name:domain:0.0.1-SNAPSHOT --> com.test.name:application:0.0.1-SNAPSHOT --> com.test.name:domain:0.0.1-SNAPSHOT @ [ERROR] The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='com.test.name:application:0.0.1-SNAPSHOT'}' and 'Vertex{label='com.test.name:domain:0.0.1-SNAPSHOT'}' introduces to cycle in the graph com.test.name:domain:0.0.1-SNAPSHOT --> com.test.name:application:0.0.1-SNAPSHOT --> com.test.name:domain:0.0.1-SNAPSHOT -> [Help 1]
I need this for dependency injection, my CDI container need to find the implementation to inject it. Does anyone have a solution ?