My project uses maven as the build tool, which works well so far.
I have a test module including all test cases of other modules, which is arranged under test/src/test/java/
However, when I create another module (let's call it TestB) and let it depend on the module test, all classes/interfaces defined in module test are invisible to the TestB. I wonder because I put all stuff under test/src/test/java but not test/src/main/java.
But if I move classes to test/src/main/java, the JUnit tool will stop working. Any good ideas on this?