title: Apache FOP: List of errors after adding Apache FOP Maven dependency
body: <p>Now I'm working on a JDK-14 application which calls to a SOAP Web Service, and after receiving a XML result next it must call a method to generate a PDF document via Apache FOP library. Please note that I'm not using <strong>module-info.java</strong> for this project.</p>
  <p>This is my current list of dependencies in Maven. All the project was running without problems. But <strong>after</strong> adding the two Apache FOP dependencies (see below), it is not possible to compile and run the application anymore.</p>
  <pre><code>&lt;dependencies&gt;
          &lt;!-- Dependencies for XML marshaling and more --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;jakarta.xml.bind&lt;/groupId&gt;
              &lt;artifactId&gt;jakarta.xml.bind-api&lt;/artifactId&gt;
              &lt;version&gt;2.3.3&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- Runtime --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.glassfish.jaxb&lt;/groupId&gt;
              &lt;artifactId&gt;jaxb-runtime&lt;/artifactId&gt;
              &lt;version&gt;2.3.3&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- Dependencies for Web Service --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;jakarta.xml.ws&lt;/groupId&gt;
              &lt;artifactId&gt;jakarta.xml.ws-api&lt;/artifactId&gt;
              &lt;version&gt;2.3.3&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;jakarta.jws&lt;/groupId&gt;
              &lt;artifactId&gt;jakarta.jws-api&lt;/artifactId&gt;
              &lt;version&gt;2.1.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.xml.ws&lt;/groupId&gt;
              &lt;artifactId&gt;rt&lt;/artifactId&gt;
              &lt;version&gt;2.3.3&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- Dependencies for Apache PDF --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.xmlgraphics&lt;/groupId&gt;
              &lt;artifactId&gt;xmlgraphics-commons&lt;/artifactId&gt;
              &lt;version&gt;2.4&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.xmlgraphics&lt;/groupId&gt;
              &lt;artifactId&gt;fop&lt;/artifactId&gt;
              &lt;version&gt;2.5&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!--Dependencies for QR Code--&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.zxing&lt;/groupId&gt;
              &lt;artifactId&gt;core&lt;/artifactId&gt;
              &lt;version&gt;3.4.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.zxing&lt;/groupId&gt;
              &lt;artifactId&gt;javase&lt;/artifactId&gt;
              &lt;version&gt;3.4.0&lt;/version&gt;
          &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  <p>The error messages varies from:</p>
  <pre><code>import javax.xml.namespace.QName;
  The package javax.xml.namespace is accessible from more than one module: &lt;unnamed&gt;, java.xmlJava(8390063)
  
  import javax.xml.transform.Result;
  The package javax.xml.transform is accessible from more than one module: &lt;unnamed&gt;, java.xmlJava(8390063)
  
  import javax.xml.transform.sax.SAXResult;
  The package javax.xml.transform.sax is accessible from more than one module: &lt;unnamed&gt;, java.xmlJava(8390063)
  
  import javax.xml.transform.stream.StreamSource;
  The package javax.xml.transform.stream is accessible from more than one module: &lt;unnamed&gt;, java.xmlJava(8390063)
  
  import javax.xml.parsers.DocumentBuilderFactory;
  The package javax.xml.parsers is accessible from more than one module: &lt;unnamed&gt;, java.xmlJava(8390063)
  </code></pre>
  <p>I want to know how can I deal with this problem. Maybe using an <strong>exclusion</strong> tag inside the specific dependency in conflict?</p>
  <p><strong>PD. At the end it is possible to generate the PDF document, just by calling directly the Apache FOP jar from the command line.</strong></p>
  <pre><code>java -jar fop.jar -r -xml &lt;xml_path&gt; -xsl &lt;xsl_path&gt; -param name1 value1 -param name2 value2 ... myPDF.pdf
  </code></pre>
  <p>But I want to know (1) if is still possible to configure via code. And (2) why this is happening now. The project was running with JDK-11 and JDK-13 before migration to JDK-14.</p>