We have ProjectB (only the main ones, not the tests) depend on ProjectA. The ProjectA test (non-core) depends on ProjectB. We have maven to create two separate artifacts (main and test jars) for each project. So there is no circular dependency here, but maven complains about circular dependence. I am wondering if there is a way to say in maven that this is really not a circular dependency.
In ProjectA, we have a ProjectB dependency section with a scope of βtestβ, since only ProjectA tests depend on ProjectB.
source share