title: Maven WAR - sources are not getting compiled
body: <p>Greetings,</p>
  
  <p>I am trying to build my web application with maven but I ran into some difficulties.</p>
  
  <p>Maven assembles my war file and puts everything into its place except for the compiled classes. It seems like my sources are not even getting compiled.</p>
  
  <p>My folder structure looks like this:</p>
  
  <pre><code>         src
           src/main
           src/main/java
           src/main/java/com
           src/main/java/com/test
           src/main/java/com/test/applications
           src/main/java/com/test/applications/TestApplication.java
           src/main/resources
           src/main/webapp
           src/main/webapp/media
           src/main/webapp/media/someimages.jpg
           src/main/webapp/styles
           src/main/webapp/styles/somecss.css
           src/main/webapp/WEB-INF
           src/main/webapp/WEB-INF/web.xml
           src/main/webapp/scripts
           src/main/webapp/scripts/jquery
           src/main/webapp/scripts/jquery/jquery-1.5.js
           pom.xml
  </code></pre>
  
  <p>and my pom.xml looks like this:</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/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;com.test&lt;/groupId&gt;
    &lt;artifactId&gt;TestApp&lt;/artifactId&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
  
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;TestApp Maven Webapp&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
    &lt;build&gt;
      &lt;finalName&gt;TestApp&lt;/finalName&gt;
    &lt;/build&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;3.8.1&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>The assembled ware file looks ok except that the WEB-INF/classes folder is empty. I'm building with Jenkins and Maven 3.0.2.</p>
  
  <p>Any help would be very much appreaciated.</p>
  
  <p>Best Regards,
  Chris</p>