diff --git a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java index 0537bc65..b1c818dc 100644 --- a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java +++ b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java @@ -768,8 +768,6 @@ public void execute() throws MojoExecutionException, CompilationFailureException String generatedSourcesPath = generatedSourcesDirectory.getAbsolutePath(); - compileSourceRoots.add(generatedSourcesPath); - if (isTestCompile()) { getLog().debug("Adding " + generatedSourcesPath + " to test-compile source roots:\n " + StringUtils.join(project.getTestCompileSourceRoots().iterator(), "\n "));