title: Maven module not found: javafx.fxml
body: <p>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.</p>
  <p>When I run <code>mvn clean install</code> I get these errors: <code>module not found: javafx.fxml</code>, <code>module not found: javafx.controls</code>, <code>module not found: javafx.graphics</code></p>
  <p>module-info.java:</p>
  <pre><code>module example {
      requires javafx.fxml;
      requires javafx.controls;
      requires javafx.graphics;
  }
  </code></pre>
  <p>I do have javafx in my pom.xml as seen here:</p>
  <pre><code>   &lt;properties&gt;
          &lt;maven.compiler.source&gt;15&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;15&lt;/maven.compiler.target&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
              &lt;artifactId&gt;javafx-graphics&lt;/artifactId&gt;
              &lt;version&gt;11.0.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
              &lt;artifactId&gt;javafx-fxml&lt;/artifactId&gt;
              &lt;version&gt;16-ea+5&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  </code></pre>
  <p>My application runs without problem, but maven seems to have some kind of problem with javafx.</p>
  <p>I use IntelliJ IDEA.</p>