Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#758 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
build-system

Research direction

Check the annotationProcessingTest branch of mensinda/quarkus-stuff and run generatedSourcesInJavacArgs.sh to reproduce the source-list issue. Read MCOMPILER-538 first, since the reported fix depends on it, then compare the behavior with GitHub pull request #192. Done means generated sources are not added to javac's source list when useIncrementalCompilation is false.

Written by the indexing model from the issue text.

Description

bug priority:major

Daniel Mensinger opened MCOMPILER-540 and commented

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.


Issue Links:

  • MCOMPILER-538 Do not add target/generated-sources/annotations to the source roots

Remote Links:

Dominant language
Java
Stars
261
Forks
194
Avg merge
1d 5h
Merged PRs (30d)
17

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/maven-compiler-plugin

All issues in apache/maven-compiler-plugin

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.