I have downloaded the JavaFX Jmod files from OpenJFX project and placed them in the directory G:\\openjfx\\javafx-jmods-11. I am using OpenJDK 11 which has no J
If it is not automatically added it, try using this setup in the pom.xml. Be sure to change the "!!YOUR MAIN CLASSNAME HERE!!" towards the bottom of the code to the name of your class with the main method! If my class is Example.java I will want to put in there just Example.
org.openjfx
javafx-controls
11.0.2
org.openjfx
javafx-fxml
11.0.2
org.apache.maven.plugins
maven-compiler-plugin
3.8.0
11
org.codehaus.mojo
exec-maven-plugin
1.6.0
java
!!YOUR MAIN CLASSNAME HERE!!
JavaFX is not automatically added as a dependency with Java 11. That's why we need added manually.