From 1fb14481bd49cd6ff37f565e4174e41bbaaff2e8 Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Thu, 15 Jun 2023 09:57:23 +0200 Subject: [PATCH] MCOMPILER-538: Do not add target/generated-sources/annotations to the source roots --- .../org/apache/maven/plugin/compiler/AbstractCompilerMojo.java | 2 -- 1 file changed, 2 deletions(-) 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 "));