I am using intellij and my code uses
import javax.xml.bind.annotation.XmlRootElement;
It compiles and runs when I use command line. However when tried running a test class using the ide(intellij), it gives the error
package javax.xml.bind.annotation does not exists
I have added the jaxb dependency in my pom.xml
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.0</version>
</dependency>
What forces intellij
not to detect this?