title: jdeps fails with Java 11 and JavaFX in fat jar
body: <p>I am trying to use jdeps (and jlink) for deployment of my Java 11 app which is using JavaFX 11. All works fine running inside my Java IDE. But when I use jdep I get the following error, which indicates that some module or package cannot be found. I am stuck. Thanks for your help.</p>
  
  <blockquote>
    <p>jdeps --list-deps  --module-path
    /Users/…/target:/Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home/jmods:/Users/…/javafx-sdk-11.0.2/lib
    --add-modules chaincoder,javafx.fxml,javafx.base,javafx.controls,javafx.graphics,javafx.web
    /Users/…/target/chaincoder4-1.0.jar</p>
  </blockquote>
  
  <pre><code>Error: Module javafx.media contains package javafx.collections, module javafx.base exports package javafx.collections to javafx.media
  </code></pre>
  
  <p>module-info.java is</p>
  
  <p>module   chaincoder {</p>
  
  <pre><code>requires   javafx.web;
  requires   javafx.graphics;
  requires   javafx.controls;
  requires   javafx.fxml;
  requires   javafx.base;
  requires   javafx.media;
  
  requires java.desktop;
  requires java.base;
  requires java.xml;
  requires java.logging;
  
  requires jdk.jsobject;
  
  exports   core;
  </code></pre>
  
  <p>}</p>
  
  <p>pom.xml is</p>
  
  <pre><code>        &lt;dependency&gt;
              &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
              &lt;artifactId&gt;javafx-graphics&lt;/artifactId&gt;
              &lt;version&gt;11.0.2&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
              &lt;artifactId&gt;javafx-controls&lt;/artifactId&gt;
              &lt;version&gt;11.0.2&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
              &lt;artifactId&gt;javafx-base&lt;/artifactId&gt;
              &lt;version&gt;11.0.2&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
              &lt;artifactId&gt;javafx-media&lt;/artifactId&gt;
              &lt;version&gt;11.0.2&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
              &lt;artifactId&gt;javafx-web&lt;/artifactId&gt;
              &lt;version&gt;11.0.2&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;11.0.2&lt;/version&gt;
          &lt;/dependency&gt;
  
  
  &lt;build&gt;
      &lt;plugins&gt;
  
          &lt;plugin&gt;
              &lt;!-- Build an executable JAR --&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.1.0&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;archive&gt;
                      &lt;manifest&gt;
                          &lt;addClasspath&gt;true&lt;/addClasspath&gt;
                          &lt;classpathPrefix&gt;lib/&lt;/classpathPrefix&gt;
                          &lt;mainClass&gt;core.Main&lt;/mainClass&gt;
                      &lt;/manifest&gt;
                  &lt;/archive&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.6&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;unpack-dependencies&lt;/id&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;unpack-dependencies&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;excludeScope&gt;system&lt;/excludeScope&gt;
                          &lt;excludeGroupIds&gt;junit,org.mockito,org.hamcrest&lt;/excludeGroupIds&gt;
                          &lt;outputDirectory&gt;${project.build.directory}/classes&lt;/outputDirectory&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.8.0&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;11&lt;/source&gt;
                  &lt;target&gt;11&lt;/target&gt;
                  &lt;compilerArguments&gt;
                      &lt;bootclasspath&gt;${sun.boot.class.path}${path.separator}${java.home}/lib/jfxrt.jar&lt;/bootclasspath&gt;
                  &lt;/compilerArguments&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt; 
      &lt;/plugins&gt;
  
  &lt;/build&gt;
  </code></pre>