title: Maven is not able to find jaxb-api with OpenJDK 11 even though its present in the repository
body: <p>I have a machine having Windows OS, it is used to build few WAR Projects. It has <strong>Java 8 installed</strong> on it. I am using <strong>Maven 3.2.5</strong> to build these WAR Projects. Everything is working fine. But as Java 8 will be a problem in future due to its end of free updates I thought of upgrading to OpenJDK 11.</p>
  
  <p><strong>I downloaded OpenJDK 11 but did not install it</strong> as I just wanted to try this for 1 of the project to start. I picked up one of the WAR Project to check if OpenJDK 11 works. This project is created using JHipster and Spring Boot. 
  I changed the pom.xml for this project to use <code>spring-boot.version to 2.1.2</code> and <code>java.verion to 11</code> and also put the <code>jaxb-api, jaxb-impl, jaxb-runtime</code> and <code>javax.activation</code> enteries(as shown below) to avoid jaxb related dependency errors in Java 11.</p>
  
  <p>In windows command prompt, I set the <code>JAVA_HOME</code> and <code>PATH</code> variables to OpenJDK11 and then I fire the <code>mvn clean compile package</code> command. As expected all jaxb related dependencies are downloaded in the maven repository but still maven is throwing error <code>NoClassDefFoundError: javax/xml/bind/JAXBException</code> while jaxb-api jar is still there in Maven repository. I tried to fire the command again but no luck.</p>
  
  <p>Can anyone please guide me about the possible root cause or any workaround. </p>
  
  <pre><code>        &lt;dependency&gt;
              &lt;groupId&gt;javax.xml.bind&lt;/groupId&gt;
              &lt;artifactId&gt;jaxb-api&lt;/artifactId&gt;
              &lt;version&gt;2.3.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.xml.bind&lt;/groupId&gt;
              &lt;artifactId&gt;jaxb-impl&lt;/artifactId&gt;
              &lt;version&gt;2.3.0&lt;/version&gt;
          &lt;/dependency&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.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.activation&lt;/groupId&gt;
              &lt;artifactId&gt;activation&lt;/artifactId&gt;
              &lt;version&gt;1.1.1&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>