title: Compiled classes missing in WAR file
body: <p>I'm working on a simple JSF 2 application and I'm having trouble with the managed beans. I was getting errors saying that the bean cannot be found and when I looked at the war it didn't have any compiled beans. In my pom.xml I had the following:</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/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;com.traintrack&lt;/groupId&gt;
  &lt;artifactId&gt;test&lt;/artifactId&gt;
  &lt;version&gt;SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  &lt;name&gt;test&lt;/name&gt;
  &lt;build&gt;
      &lt;outputDirectory&gt;src/main/webapp/WEB-INF/classes&lt;/outputDirectory&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.jboss.as.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;jboss-as-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;7.7.Final&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.3&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;warSourceDirectory&gt;${basedir}/WebContent&lt;/warSourceDirectory&gt;
                  &lt;failOnMissingWebXml&gt;false&lt;/failOnMissingWebXml&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.0&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.6&lt;/source&gt;
                  &lt;target&gt;1.6&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p></p>
  
  <p>If I remove the WebContent folder from the warSourceDirectory I get the rest of my project in the war file but this doesn't seem right. The file was generated by eclipse so I would assume it's ok. In WEB-INF there is a classes folder which is empty.</p>
  
  <p>My project folder structure is:</p>
  
  <pre><code>test
  - src/
    - sample/
      - sampleBean.java
  - WebContent/
    - sample.xhtml
    - WEB-INF/
      - faces-config.xml
      - web.xml
    - META-IF/
  </code></pre>
  
  <p>but my compiled war file's structure is like this:</p>
  
  <pre><code>test
    - sample.xhtml
    - WEB-INF/
      - faces-config.xml
      - web.xml
      - classes/
    - META-IF/
  </code></pre>
  
  <p>What should be packaged in my war file and where should the compiled bean be?</p>
  
  <p>Thanks</p>