There is a convention to organize java modules in the following way: src/main/java - source root for production code src/test/java - source root for test code