I'm trying to make a multi-module maven project. First module would be an JavaFX and the second one would be a SpringBoot, but I'm having problem with the JavaFX.
When I run mvn clean install
I get these errors: module not found: javafx.fxml
, module not found: javafx.controls
, module not found: javafx.graphics
module-info.java:
module example {
requires javafx.fxml;
requires javafx.controls;
requires javafx.graphics;
}
I do have javafx in my pom.xml as seen here:
<properties>
<maven.compiler.source>15</maven.compiler.source>
<maven.compiler.target>15</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>11.0.1</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>16-ea+5</version>
</dependency>
</dependencies>
My application runs without problem, but maven seems to have some kind of problem with javafx.
I use IntelliJ IDEA.