apache / apache/maven-compiler-plugin

[MCOMPILER-540] useIncrementalCompilation=false may add generated sources to the sources list

Open
#758 0 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
261
Forks
191
Avg merge
1d 5h
Merged PRs (30d)
8

Description

**[Daniel Mensinger](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER281729)** opened **[MCOMPILER-540](https://issues.apache.org/jira/browse/MCOMPILER-540?redirect=false)** and commented

When using the `maven-compiler-plugin` with `false`, 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.

---

**Issue Links:**
- [MCOMPILER-538](https://issues.apache.org/jira/browse/MCOMPILER-538) Do not add target/generated-sources/annotations to the source roots

**Remote Links:**
- [GitHub Pull Request #192
](https://github.com/apache/maven-compiler-plugin/pull/192)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.