I have a project where dependencies were designed based on java 8, I'm using java 9 modules. I keep getting errors related to multiple exports.
java: java.lang.reflect.InvocationTargetException
Modules nd4j.common and nd4j.api export package org.nd4j.linalg.util to module jai.imageio.core
Do I need to map out every dependency tree, find the duplicates and make exclusions? Some dependencies have upwards of 12 dependencies that also have their own dependencies. Is there a better way? Java 9 modules are becoming a huge needless headache if not.
Here are the libraries I'm using: Deeplearning4j-core, Deeplearning4j-ui, deeplearning4j-zoo, nd4j-native-platform, javacv, lombok, javafx-controls, javafx-fxml, javafx-media, controls-fx, formsfx-core
I tried creating an Excel spreadsheet of all my dependencies' dependencies, found the ones that were duplicates, and made the appropriate exclusions in pom.xml. I'm still getting multiple export errors but they are now libraries that I'm not even sure where they are because they aren't ones I've imported but rather a child dependency somewhere that is in common with another child somewhere.
Thank you for looking!