title: import javax.xml.bind.annotation.XmlRootElement not resolved
body: <p>I am using intellij and my code uses</p>
  
  <p><code>import javax.xml.bind.annotation.XmlRootElement;</code></p>
  
  <p>It compiles and runs when I use command line. However when tried running a test class using the ide(intellij), it gives the error</p>
  
  <p><code>package javax.xml.bind.annotation does not exists</code></p>
  
  <p>I have added the jaxb dependency in my pom.xml</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.0&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>What forces <code>intellij</code> not to detect this?</p>