mariuszs opened a new pull request, #1042: URL: https://github.com/apache/maven-compiler-plugin/pull/1042
## Summary Fixes #1039 — `FindException` when a `modular-processor` dependency transitively requires a module that is also a direct project dependency (declared as `modular-jar`). **Root cause:** Maven's conflict resolution places a dependency on only one path type. When `avaje-inject` is declared as `modular-jar` (→ `--module-path`) and is also a transitive dependency of `avaje-inject-generator` (`modular-processor` → `--processor-module-path`), it ends up only on `--module-path`. Since `javac` resolves the processor module layer independently, it throws `FindException: Module not found`. **Fix:** After dependency resolution, copy `--module-path` entries to `--processor-module-path` when processor modules are present. This is safe because the processor module layer is isolated — additional modules don't cause conflicts. ## Changes - `ToolExecutor.java`: Added `supplementProcessorModulePath()` method (~15 lines) - New integration test `modular-processor-shared-dep/` that reproduces the exact scenario ## Test plan - [x] New IT `modular-processor-shared-dep` fails without fix (`FindException`), passes with fix - [ ] Existing ITs still pass -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
