fix(java): show Maven-generated sources in Problems (#3944)

jdtls/m2e only import source folders declared in the POM. Generators such as protobuf/gRPC, jOOQ, Avro, OpenAPI and QueryDSL add theirs with addCompileSourceRoot while the build runs, so Problems stayed red after a successful Maven compile. After a Maven project update, and after Build, Rebuild and Compile File, the IDE now scans target/generated-sources and generated-test-sources and puts those folders on the jdtls classpath through openidea.java.generatedSources (java-usages bundle 1.16.0), marked so a later scan can drop them; annotation-processor output, which jdtls compiles itself, is left out. A Maven build never starts jdtls by itself.

Co-authored-by: tomgor <[email protected]>
Цей коміт міститься в:
tomgorтаtomgor authored and GitHub committed 2026-11-17 20:06:44 +08:00
1 джерело 407561e59a
коміт cb7bddec14
10 files changed
+706 -10

No files matched your search

Бінарний файл не відображається.