title: javax.xml.stream and javax.xml.transform.stream in Java 10
body: <p>In Java 8, I've been using these packages:</p>
  
  <pre><code>import javax.xml.stream.XMLInputFactory;
  import javax.xml.stream.XMLStreamException;
  import javax.xml.stream.XMLStreamReader;
  import javax.xml.transform.stream.StreamSource;
  </code></pre>
  
  <p>Now, in Java 10, they cannot be resolved. What Maven dependency should I include? I don't want to use modules.</p>
  
  <p><a href="https://i.stack.imgur.com/g0ZIJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/g0ZIJ.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/PV7iB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PV7iB.png" alt="enter image description here"></a></p>
  
  <p><strong>Solution:</strong></p>
  
  <p>Exclude old Maven dependencies stax-api and xml-apis from old libraries.</p>