title: How to resolve a dependency conflict caused by adding Axis2 to a Maven multi-module project
body: <p>We have a multi-module Maven project with dependencies on javax.servlet-api 3.0.1. When we added an Axis2 1.6.2 dependency to one of our modules we started getting compilation errors. I believe this is due to conflicts between our dependency:</p>
  
  <pre><code>        &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
              &lt;version&gt;3.0.1&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>and an Axis2 dependency:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
          &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>I'm not sure how to resolve this issue. Also don't understand the difference between the javax.servlet-api and servlet-api artifacts.</p>
  
  <p>I have uploaded a small sample project that demonstrates the problem. <a href="https://github.com/chakatodd/axis2_dependency_woes" rel="nofollow">https://github.com/chakatodd/axis2_dependency_woes</a></p>
  
  <p>If the Axis2 dependency is remove from the module2/pom.xml the compilation problems are resolved.</p>
  
  <p>Thank you for any insight you can offer.</p>