I have 2 projects and
+ proj1 has
+ com.myproj1 has
+ Runner.class
+ Logger.class
+ proj2 has
+ com.myproj2 has
+ Test.class
+ Fact.class
module com.myproj1 {
requires module com.myproj2;
exports com.myproj1
}
module com.myproj2 {
exports com.myproj2;
requires module com.myproj1;// the problem is "Cycle exists in module
dependencies, Module... "
}
I use Test.class from com.myproj2 in com.myproj1 Runner.class it is fine until here but when I try to use Logger.class in the Fact.class it gives me the problem "Cycle exists in module dependencies, Module ". I know modules are prevent to Cycle dependencies. But then what is the solution for the situations like this>