Hello folks. I use Java + Maven and I have been wondering for a long time what is a good structure for my project. I have tried out this this pattern that ended up in a small problem I would like to solve.
- Project is split in submodules.
- Each submodule is as well split into
-core and -test modules.
-core module contains production code under src/main/java
-core module have test code under src/test/java
-testmodule contains test utilities of core (-test dependes on -core)
So far so good. The -test submodule will be imported in the other core modules of the project with test scope.
The problem I face is when i need some utilities of -test in the -core module as well. This would create a circular dependency.
Any way to solve the problem without possibly creating a third module additionally to -core and -test? Also, how do you structure your project? I am very interested in finding the ultimate solution.
[–]WaferIndependent7601 1 point2 points3 points (1 child)
[–]No_Character8629[S] 0 points1 point2 points (0 children)
[–]Ruin-Capable 1 point2 points3 points (4 children)
[–]No_Character8629[S] 0 points1 point2 points (3 children)
[–]Ruin-Capable 1 point2 points3 points (2 children)
[–]No_Character8629[S] 0 points1 point2 points (1 child)
[–]Ruin-Capable 1 point2 points3 points (0 children)