Attempting to compile a modular Java project will fail, reporting that it cannot not find the required modules.
I fixed it by adding the module paths manually in :javac-opts
. Could tools.build handle this? Either by adding all the modules to the module path, or ignoring module-info.java and module-info.class. tools.build/javac
will also fail if there is a module-info.class in the classes directory and tools.build/javac
does not find the modules.
Thank you.