Template for JavaFX GUI applications / JDK 11 / TestFX
./mvnw javafx:run -pl gui
.css
files from .scss
./mvnw nl.geodienstencentrum.maven:sass-maven-plugin:update-stylesheets -pl gui
fswatch --exclude='.*' --include='.*[.]scss$' --print0 . | while read -d "" event; do
./mvnw nl.geodienstencentrum.maven:sass-maven-plugin:update-stylesheets -pl gui
done
You need to install fswatch
command for this to work.
jlink
image
./mvnw javafx:jlink -pl gui
You can now send ./gui/target/gui.zip
to your friends
./mvnw verify -Dskip.integration.tests=false -Dskip.unit.tests=true
./mvnw clean verify -Dskip.integration.tests=false -Dskip.unit.tests=true \
-pl gui -Dit.test=MainWindowIT
_JAVA_OPTIONS="-Djava.awt.headless=true \
-Dtestfx.robot=glass \
-Dtestfx.headless=true \
-Dprism.order=sw \
-Dprism.verbose=true" ./mvnw verify -Dskip.integration.tests=false -pl gui
On macOS you must allow IntelliJ or the terminal app that you are using,
to “take over your computer”: