[ 
https://issues.apache.org/jira/browse/MCOMPILER-266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15233527#comment-15233527
 ] 

Ben Schulz commented on MCOMPILER-266:
--------------------------------------

Huh. I could have sworn I verified with 3.6-SNAPSHOT, but I can't reproduce it 
with that one or 3.5.1 (anymore). Sorry for the bother. Closing.

> 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)

Reply via email to