The import com.fasterxml.jackson.xml cannot be resolved
<p>I am facing the error <code>The import com.fasterxml.jackson.xml cannot be resolved.
XmlMapper cannot be resolved to a type</code><br>
in the <code>import com.fasterxml.jackson.xml.XmlMapper;</code>.</p>

<p>My pom :</p>

<pre><code>&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
         &lt;dependency&gt;
            &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
            &lt;artifactId&gt;jackson-annotations&lt;/artifactId&gt;
            &lt;version&gt;${jackson.version}&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
            &lt;artifactId&gt;jackson-core&lt;/artifactId&gt;
            &lt;version&gt;${jackson.version}&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
            &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
            &lt;version&gt;${jackson.version}&lt;/version&gt;
        &lt;/dependency&gt;
</code></pre>

<p>Is there a problem in the version? Other import of jackson core and databind seems to work completely fine. This happens in the case of xml only.</p>