title: How to add maven dependencies of json to modules in >= Java 9
body: <p>in java 8 projects you simply add the following dependencys in maven</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;javax.json&lt;/groupId&gt;
      &lt;artifactId&gt;javax.json-api&lt;/artifactId&gt;
      &lt;version&gt;1.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.glassfish&lt;/groupId&gt;
      &lt;artifactId&gt;javax.json&lt;/artifactId&gt;
      &lt;version&gt;1.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Using OpenJDK, Eclipse 2018-12<br>
  and maven module, it results in getting a error in the module-info.java:</p>
  
  <blockquote>
    <p>The package javax.json.stream is accessible from more than one module:
    java.json, org.glassfish.java.json</p>
  </blockquote>
  
  <p>So in both dependency projects there is a package called javax.json.stream and due to jigsaw module system this is not allowed anymore?</p>
  
  <p>How to fix this?</p>
  
  <p><strong>EDIT:</strong><br>
  I updated the maven dependency to 1.1.4 and put them on the classpath.
  The <code>javax.json-api</code> has a module-info.java file and is working fine, eclipse shows no more errors.<br>
  But now the packages of the implementation <code>javax.json (org.glassfish)</code> are not found, resulting in a <code>ClassNotFoundException: org.glassfish.json.JsonProviderImpl</code><br><br>
  What more can I do?</p>
  
  <p><strong>EDIT:</strong><br>
  Its working now, i forgot to generate a module-info.java in this project.</p>