title: mvn tomcat:run does not pick up css files
body: <p>I have asked another question related to this in this thread <a href="https://stackoverflow.com/questions/7836930/where-do-css-and-javascript-files-go-in-a-maven-web-app-project">Where to put css resources in a maven project</a></p>
  
  <p>thinking that I was not putting the css resources under the right location in a Maven project structure. Right now I have a folder under webapp called <strong>css</strong> and I have the css resources there. My problem is that when I do <code>mvn clean tomcat:run</code> those css resources do not seem to be picked up and put appropriately in the target folder so my application cannot pick them up.</p>
  
  <p>Does anybody know why?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>My goal is to avoid building the war upon deployment for rapid development.I have changed my Maven command to: <code>mvn clean war:exploded tomcat:run</code></p>
  
  <p>The application runs fine but the css is not being picked up. If I go to the browser and type: <code>http://localhost:8080/appname/css/styles.css</code></p>
  
  <p>I get a Spring Framework error saying <code>No mapping found for HTTP request with URI [/appname/css/styles.css</code> in DispatcherServlet</p>
  
  <p>In other Spring Java apps that I have built using traditional project style (not maven) I was able to access the css from the borwser with the url above. I have made sure that the css folder is hanging straight out of the webapp folder.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>UPDATE: Adding web.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"&gt;
  
  &lt;!-- The definition of the Root Spring Container shared by all Servlets and Filters --&gt;
  &lt;context-param&gt;
      &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
      &lt;param-value&gt;/WEB-INF/spring/root-context.xml
                   classpath*:META-INF/spring/applicationContext*.xml                  
      &lt;/param-value&gt;
  &lt;/context-param&gt;
  
  &lt;!-- Creates the Spring Container shared by all Servlets and Filters --&gt;
  &lt;listener&gt;
      &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  
  &lt;!-- Processes application requests --&gt;
  &lt;servlet&gt;
      &lt;servlet-name&gt;appServlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-value&gt;/WEB-INF/spring/appServlet/servlet-context.xml&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;appServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p></p>
  
  <p>I do not have the Dispatcher servlet mapped to /* and it still tries to access CSS files through the DispatcherServlet.</p>