title: Missing class files after Maven build
body: <p>I'm using Maven 3.3.9 on Windows 10. I have a multi-POM project, and I want to share some test resources across the Maven projects. As we all know the files in <code>src/test/*</code> won't be included in distribution JARs, so I created a separate project just for the test resources (and accompanying Java class with the resource names), so that I could share this project across other projects.</p>
  
  <p>For the sake of illustration let's say that there are two files in the <code>foo-test</code> project:</p>
  
  <ul>
  <li><code>src/main/java/com/example/foo/test/FooTestResources.java</code></li>
  <li><code>src/main/resources/com/example/foo/test/resource.txt</code></li>
  </ul>
  
  <p>Straightforward, right? Except that when I build the project in Maven, the resulting JAR file <em>only contains <code>com/example/foo/test/resource.txt</code></em>! The class file, which I would expect to be in <code>com/example/foo/test/FooTestResources.class</code>, is missing.</p>
  
  <p>In fact they this file isn't even in the <code>target</code> directory, so it's as if Maven isn't even compiling the source file. I searched my project directory for <code>FooTestResources.class</code>, and it doesn't exist. Only the source code file <code>FooTestResources.java</code> is there.</p>
  
  <p>When I build the project on Eclipse 4.6.3, Eclipse generates the file <code>target/com/example/foo/test/FooTestResources.class</code> as expected. When I do a <code>mvn clean install</code> it disappears.</p>
  
  <p>What is going on?</p>