I`m trying to run jdeps with the following command:
jdeps --module-path modules --generate-module-info out com.demo.market.jar
My com.demo.market.jar
depends both on application modules and automatic modules.
I put all dependencies in the 'modules' folder but I got an error:
Error: missing dependencies
com.demo.market.platform.MarketPlace -> com.demo.client.wholesale.Client not found
com.demo.market.platform.MarketPlace -> com.demo.product.api.Product not found
com.demo.market.platform.MarketPlace -> com.demo.product.laptop.Laptop not found
com.demo.market.collector.ProductsCollector -> com.demo.logistic.DeliveryService not found
com.demo.market.collector.ProductsCollector -> com.demo.product.api.Product not found
But when I add --add-modules
It works fine.
jdeps --module-path modules --add-modules com.demo.client,com.demo.product,com.demo.logistic --generate-module-info out com.demo.market.jar
Am I doing something wrong? I supposed that jdeps would find all modules instead of manually add them.
jdeps --generate-module-info out com.my.app.jar
simply not work for you? What's your path and what modules does it include. Could you share the details for both the command--module-path
and--add-modules
as used by you? – Rebekahrebekkah