Jdeps missing dependencies
See original GitHub issueHello,
I’m somewhat reluctant to ask because I have a hunch I’m overlooking something silly, but I feel I’ve checked everything I could think of a couple of times over. I must confess this is the first time I’m using Java modules, and I have a hunch there is something not quite right in that general direction. This is what I did so far:
- set up the environment according to the readme.md;
- created a new repo using your template;
- cloned it locally, tried it out, got a TestApp.dmg, installed that and it works fine;
- merged the code from my original application in that repository;
- changed some settings, like adding the javafx-fxml and javafx-web modules (I should replace the -web one with something more light-weight, I only use it to render rich text);
- added the required Spring boot, H2 and FXWeaver dependencies and the H2 db files …
and hit mvn clean install
Result:

There’s a small .jar with only the classes from the src/ directory, and one of around ~30Mb in the shaded-jar directory.
The unpacked-shade dir looks as if it contains what I would expect (eg Spring, H2, Hibernate etc.).
But it goes wrong in the jdeps step. The java-tool reports:
Failed to execute goal io.github.wiverson:jtoolprovider-plugin:1.0.25:java-tool (jdeps) on project ithildin: jdeps 1
Details:
[INFO]
[INFO] --- jtoolprovider-plugin:1.0.25:java-tool (jdeps) @ ithildin ---
[ERROR] jdeps failed with error code [1]
[ERROR] --add-modules
[ERROR] javafx.base,javafx.controls,javafx.graphics,javafx.fxml,javafx.web,java.logging
[ERROR] --generate-module-info
[ERROR] /Users/luthien/git/aduial/ithildin-app/target/work
[ERROR] --module-path
[ERROR] /Users/luthien/git/aduial/ithildin-app/mac-javafx/javafx-sdk-15.0.1/lib/
[ERROR] /Users/luthien/git/aduial/ithildin-app/target/shaded-jar/ithildin.jar
[INFO] Error: Missing dependencies: classes not found from the module path and classpath.
To suppress this error, use --ignore-missing-deps to continue.
ithildin
ch.qos.logback.classic.ViewStatusMessagesServlet -> javax.servlet.http.HttpServletRequest not found
ch.qos.logback.classic.ViewStatusMessagesServlet -> javax.servlet.http.HttpServletResponse not found
... (4500 more lines like this)
It’s a LONG list 😉 - it looks like, well, as if I would generate the “Effective POM” in IntelliJ and then spell out every method included therein. Again, I have a hunch this is something really silly, but I can’t find it … 😓
Issue Analytics
- State:
- Created 3 years ago
- Comments:51 (23 by maintainers)
Top Related StackOverflow Question
I guess that goes to show I’m way more used to building backend services than desktop gui applications!
Thanks for the suggestions! MyBatis and JOOQ sound like they could be useful, I’ll check those out.
Ok, I’ve updated the plugin to play better with Maven (e.g. running install again without running clean first), and also gone through and massively cleaned up, simplified, and documented the pom.xml and the rest of the documentation.
Let me know what you think!