Add generatedSourcesDirectory to maven-compiler-plugin configuration.
IntelliJ doesn't like generatedSourcesDirectory... try something else.
Refactor some test classes.