Setting up JavaFX with Maven - with and without FXML
In this repo we will explain how to setup simple/fxml (without/with fxml) JavaFx application using IntelliJ.
Create from archetype
in the right pane and click Add archetype
GroupId: org.openjfx
ArtifactId: javafx-maven-archetypes
Version: 0.0.1
Artifacts Coordinates
and enter the following and click Next
GroupId: org.javafx # package name
ArtifactId: javafx-maven # Project Name
Version: 1.0-SNAPSHOT # tar file name
javafx-archetype-simpe
OR javafx-archetype-fxml
(for fxml support) and click OK.Add configrations
Run
Before lanuch
and click + and select Run Maven Goal
and type javafx:run
in the Command line, and click Ok.javafx:run
in the command line, click apply, ok.javafx-base/controls/graphics
jar files downloaded.javafx-base/controls/graphics/fxml
jar files downloaded.