WARNING when a module tries to export to another module but the other module is not yet compiled

Siddharth Jain siddhsql at gmail.com
Wed Oct 18 23:36:08 UTC 2023


I am using JPMS with Maven compiler plugin. say i have:

module x {
exports foo to y
}

when i do a clean install I get a WARNING from maven that y does not exist.
Its true, the dependency tree has to be built from bottom to top so x will
be built first and only then y can be built.

i also see strange errors while executing tests where maven clean install
will fail with some errors saying type X could not be found but if i re-run
the command it passes.

i think this error happens because at first y does not exist so JPMS does
not know about it. but when i re-run y does exist. is that right?

i don't mind the WARNING my question is about the weird errors. has anyone
run into same issue?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jigsaw-dev/attachments/20231018/5352959b/attachment.htm>


More information about the jigsaw-dev mailing list