A Maven Archetype for JavaFX starter projects. For more information, visit the OpenJFX.io project. The code sample in this project is based on the HelloFX example.
- Maven 3 (or later)
- OpenJDK 11 (or later)
Before you can create projects with this archetype, you must clone thhe repository and install it in your local Maven repository. To do so, follow these steps:
git clone https://github.com/brunoborges/maven-javafx-archetype.git
cd maven-javafx-archetype
mvn install
Run the following command:
mvn archetype:generate \
-DarchetypeGroupId=io.brunoborges \
-DarchetypeArtifactId=maven-javafx-archetype \
-DarchetypeVersion=11.0.2-SNAPSHOT
Provide input with project information.
Go into the project folder, and run:
mvn package exec:java