[
https://issues.apache.org/jira/browse/MCOMPILER-266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ben Schulz closed MCOMPILER-266.
--------------------------------
Resolution: Invalid
> generatedSourcesDirectory added to compileSourceRoots
> -----------------------------------------------------
>
> Key: MCOMPILER-266
> URL: https://issues.apache.org/jira/browse/MCOMPILER-266
> Project: Maven Compiler Plugin
> Issue Type: Bug
> Reporter: Ben Schulz
> Priority: Critical
>
> Source files generated by the annotation processor are fed into the compiler
> as regular sources. On incremental builds this can lead javac to load
> generated sources before they are re-generated. In such a scenario javac will
> throw an exception (see
> [JDK-8067747|https://bugs.openjdk.java.net/browse/JDK-8067747]).
> To fix this bug, the line [{{compileSourceRoots.add( generatedSourcesPath
> );}}|https://github.com/apache/maven-plugins/blob/cb254e434a40b7ff58c936abbb3f823029a0e466/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java#L574]
> needs to be removed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)