title: Maven dependencies not deployed on Eclipse Tomcat instance
body: <p>I'm using Spring Tool Suite 3.1 and I have some issues deploying a web application to tomcat.</p>
  
  <p>When I hit "run on server" and the server starts it throws the famous:</p>
  
  <blockquote>
    <p><code>java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener</code></p>
  </blockquote>
  
  <p>So I check the <code>/wtpwebapps</code> directory to find that the project is deployed, but inside the <code>lib</code> folder only a few libraries are present. I completely miss the rationale behind their selection. Of course the libraries related to spring aren't there. Can anyone help?</p>
  
  <p>This is my <code>org.eclipse.wst.common.commonent</code> file, maybe it can be useful:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project-modules id="moduleCoreId" project-version="1.5.0"&gt;
  &lt;wb-module deploy-name="Checkup"&gt;
      &lt;wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/&gt;
      &lt;wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/&gt;
      &lt;wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/&gt;
      &lt;wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/&gt;
      &lt;wb-resource deploy-path="/WEB-INF/classes" source-path="/src/test/java"/&gt;
      &lt;wb-resource deploy-path="/WEB-INF/classes" source-path="/src/test/resources"/&gt;
      &lt;property name="context-root" value="Checkup"/&gt;
      &lt;property name="java-output-path" value="/Checkup/build/classes"/&gt;
  &lt;/wb-module&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>EDIT:</strong> </p>
  
  <p>you can see the list of maven plugin embedded with STS installation (no customizations)</p>
  
  <p><img src="https://i.stack.imgur.com/5t3EB.jpg" alt="STS maven plugins"></p>