title: JAXB equals and Hashcode: gives error
body: <p>I'm trying to get my pom.xml to generate the hashCode() and equals methods() on my JAXB objects.</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.jvnet.jaxb2_commons&lt;/groupId&gt;
          &lt;artifactId&gt;jaxb2-commons-lang&lt;/artifactId&gt;
          &lt;version&gt;2.3&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.jvnet.jaxb2.maven2&lt;/groupId&gt;
              &lt;artifactId&gt;maven-jaxb2-plugin&lt;/artifactId&gt;
              &lt;version&gt;0.8.3&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;generate&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;extension&gt;true&lt;/extension&gt;
                  &lt;args&gt;
                      &lt;arg&gt;-XtoString&lt;/arg&gt;
                      &lt;arg&gt;-Xequals&lt;/arg&gt;
                      &lt;arg&gt;-XhashCode&lt;/arg&gt;
                  &lt;/args&gt;
                  &lt;plugins&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.jvnet.jaxb2_commons&lt;/groupId&gt;
                          &lt;artifactId&gt;jaxb2-basics&lt;/artifactId&gt;
                          &lt;version&gt;0.6.2&lt;/version&gt;
                      &lt;/plugin&gt;
                  &lt;/plugins&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p></p>
  
  <p>This gives the following errors though...</p>
  
  <pre><code>package org.jvnet.jaxb2_commons.lang does not exist
  package org.jvnet.jaxb2_commons.locator does not exist
  package org.jvnet.jaxb2_commons.locator.util does not exist
  cannot find symbol symbol: class Equals
  cannot find symbol symbol: class HashCode
  cannot find symbol symbol: class ToString
  cannot find symbol symbol  : class ObjectLocator
  cannot find symbol symbol  : class ToStringStrategy
  cannot find symbol symbol  : class HashCodeStrategy
  </code></pre>
  
  <p>I've googled about, and I've found a post about adding..</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.jvnet.jaxb2_commons&lt;/groupId&gt;
      &lt;artifactId&gt;runtime&lt;/artifactId&gt;
      &lt;version&gt;0.4.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.jvnet.jaxb2_commons&lt;/groupId&gt;
      &lt;artifactId&gt;testing&lt;/artifactId&gt;
      &lt;version&gt;0.4.1&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>But this doesn't help.</p>
  
  <p>Can anyone help me out please!</p>