Skip to content

Commit 1fb1448

Browse files
committed
MCOMPILER-538: Do not add target/generated-sources/annotations to the source roots
1 parent 3ea742c commit 1fb1448

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java

-2
Original file line numberDiff line numberDiff line change
@@ -768,8 +768,6 @@ public void execute() throws MojoExecutionException, CompilationFailureException
768768

769769
String generatedSourcesPath = generatedSourcesDirectory.getAbsolutePath();
770770

771-
compileSourceRoots.add(generatedSourcesPath);
772-
773771
if (isTestCompile()) {
774772
getLog().debug("Adding " + generatedSourcesPath + " to test-compile source roots:\n "
775773
+ StringUtils.join(project.getTestCompileSourceRoots().iterator(), "\n "));

0 commit comments

Comments
 (0)