My maven project intentionally only needs src/test/java and src/test/resources. After removing src/main/* folders, the expected w
The simply and best solution is to keep the test code in src/main/java yes this is not a typo. Furthermore if it is a test framework the test framework must have tests itself so it makes sense to locate the tests for the productive code from the user point of view into src/main/java and the tests in src/test/java.
From the user point of view it will be simply jar file where you should define the .
This will solve all the issues without any supplemental configuration and changing any default and no violation of conventions.