jlahoda opened a new pull request #2598: URL: https://github.com/apache/netbeans/pull/2598
So, the problem here is that some Maven projects have a `module-info` for module `$m` in `src/main/java` and another for `$m` in `src/test/java`, which overrides the main one. (Note the module names are the same.) The `maven-compiler-plugin` will then put the `src/main/java` on patch path for (test) `$m`: https://github.com/apache/maven-compiler-plugin/blob/1b206fe40156bb9814ed8b804a23362ec2b41daa/src/main/java/org/apache/maven/plugin/compiler/TestCompilerMojo.java#L335 This is an attempt to simulate this inside NetBeans, although I am by far not sure if it is correct. It: -does the tweak in the module projects to include the `--patch-module` option -tweaks `PatchModuleManager`, so that if we have caches for the main sources, we use the caches -tweaks the `ClassPath` content so that the "IDE-view" classpath for tests was a reference to the main sources, so that navigation from tests to sources works. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
