title: Setup Tomcat libraries dependencies in maven POM
body: <p>I am currently migrating our build process from Eclipse/Ant to Maven/M2Eclipse/Artifactory.
  I have a Webapp as a WTP project in Eclipse.
  I have migrated it to Maven with m2eclipse.</p>
  
  <p>The compilation runs fine from the Eclipse IDE.</p>
  
  <p>However, when I try to compile from Maven CLI (<code>mvn clean &amp; mvn compile</code>), Maven complains about not finding the libraries provided by the Tomcat Environment (like <em>annotations-api</em>, <em>servlet-api</em>, etc, ...). </p>
  
  <p>Fair enough : Indeed, these dependencies are provided by WTP, as <code>Java resources / Libraries / ApacheTomcat6</code>. Maven is not aware of them.</p>
  
  <p>I could deactivate this in the build path, and add each corresponding dependency in my POM, but I'm afraid this would lead Maven to deploy them again in my webapp (<code>WEB-INF/libs</code>).</p>
  
  <p>So, what is the good way to say to maven "this application will run in a well known environment, providing the following libraries  ". Is there some common Tomcat POM that I could add as a dependency ?</p>
  
  <p>Thanks in advance for your advice.
  regards,</p>
  
  <p>Raphael</p>