[
https://issues.apache.org/jira/browse/MCOMPILER-540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Mensinger updated MCOMPILER-540:
---------------------------------------
Description:
When using the {{maven-compiler-plugin}} with
{{<useIncrementalCompilation>false</useIncrementalCompilation>}}, source files
from the generated sources root directory may be added to the list of source
files. This can lead to {{javax.annotation.processing.FilerException: Attempt
to recreate a file for type XXXX}} exceptions.
To reproduce:
Checkout the {{annotationProcessingTest}} branch of
[https://github.com/mensinda/quarkus-stuff/tree/annotationProcessingTest] and
run the {{generatedSourcesInJavacArgs.sh}} script.
**Note:** The fix in my PR depends on MCOMPILER-538 to fully work.
was:
When using the {{maven-compiler-plugin}} with
{{<useIncrementalCompilation>false</useIncrementalCompilation>}}, source files
from the generated sources root directory may be added to the list of source
files. This can lead to {{javax.annotation.processing.FilerException: Attempt
to recreate a file for type XXXX}} exceptions.
To reproduce:
Checkout the {{annotationProcessingTest}} branch of
[https://github.com/mensinda/quarkus-stuff/tree/annotationProcessingTest] and
run the {{generatedSourcesInJavacArgs.sh}} script.
> useIncrementalCompilation=false may add generated sources to the sources list
> -----------------------------------------------------------------------------
>
> Key: MCOMPILER-540
> URL: https://issues.apache.org/jira/browse/MCOMPILER-540
> Project: Maven Compiler Plugin
> Issue Type: Bug
> Reporter: Daniel Mensinger
> Priority: Major
>
> When using the {{maven-compiler-plugin}} with
> {{<useIncrementalCompilation>false</useIncrementalCompilation>}}, source
> files from the generated sources root directory may be added to the list of
> source files. This can lead to {{javax.annotation.processing.FilerException:
> Attempt to recreate a file for type XXXX}} exceptions.
> To reproduce:
> Checkout the {{annotationProcessingTest}} branch of
> [https://github.com/mensinda/quarkus-stuff/tree/annotationProcessingTest] and
> run the {{generatedSourcesInJavacArgs.sh}} script.
> **Note:** The fix in my PR depends on MCOMPILER-538 to fully work.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)