The OpenJFX Docs link to this sample project to configure maven to build a fat jar. Uncommenting the graphics dependencies will definitely create a multi-platform jar in the package phase, but the same pom cannot be used to do a mvn javafx:run, because then it fails with:
Graphics Device initialization failed for : es2, sw
Error initializing QuantumRenderer: no suitable pipeline found
java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
This can be easily circumvented by including the dependencies only when wanting to build the fat jar.
I'll provide a PR with improvements.
Also it would be nice to fix https://openjfx.io/openjfx-docs/ >> Runtime Images >> Non Modular project/application >> Cross-platform jar.
The OpenJFX Docs link to this sample project to configure maven to build a fat jar. Uncommenting the graphics dependencies will definitely create a multi-platform jar in the
package
phase, but the same pom cannot be used to do amvn javafx:run
, because then it fails with:This can be easily circumvented by including the dependencies only when wanting to build the fat jar. I'll provide a PR with improvements.
Also it would be nice to fix https://openjfx.io/openjfx-docs/ >> Runtime Images >> Non Modular project/application >> Cross-platform jar.