Hey,
I'm developing a javafx application using mvvmFx amongst others, and wanted to have a go at modularising it in order to create a custom runtime with jlink.
After adding the module-info.java with the needed requires and export statements,
I am able to produce a fully working artifact with spring boot by running mvn clean install spring-boot:repackage.
However, when trying to run the application from inside IntelliJ (using either the Run Dashboard or the plain old "Run" button, I get the following exception:
java.io.IOException: Error loading FXML - can't load from given resourcepath: /com/xxx/xxx/xxx/xxx/xxx/xxx.fxml (x's are obviously not there in the actual app ;) )
at mvv...@1.7.0/de.saxsys.mvvmfx.internal.viewloader.FxmlViewLoader.createFxmlLoader(FxmlViewLoader.java:239)
at mvv...@1.7.0/de.saxsys.mvvmfx.internal.viewloader.FxmlViewLoader.loadFxmlViewTuple(FxmlViewLoader.java:169)
The fxml files are in the resources directory as usual, in the correct packages.
Note, everything was working fine before adding the module-info.java so it's obviously related,
but I'm not sure if this is a mvvmFx issue or a IntelliJ issue ;)