title: Eclipse with maven includes test classes in classpath of dependent projects
body: <p>I have a Maven multi-module project which is open in Eclipse. For simplicity's sake, let's say it contains two projects: common and app. Comm contains the class "Foo" and "FooTest".</p>
  
  <p>When running the app project, "FooTest" is on the classpath.</p>
  
  <p>Project layout is as follows</p>
  
  <pre><code>common
    src/main/java/.../Foo.java
    src/test/java/.../FooTest.java
  app
  </code></pre>
  
  <p>The real problem is that this is using the Spring framework and the "app" project is trying to load a <code>@TestConfiguration</code> from the test packages.</p>
  
  <p>I'm not sure what additional information to include, I will update this question with any information requested.</p>