title: m2e pick up sources from ${sourceDirectory}/main/java
body: <p>I set <code>&lt;sourceDirectory&gt;target/src&lt;/sourceDirectory&gt;</code> in my pom, because i use some custom ant <code>process-sources</code> steps. Maven compile project well, it automaticaly search sources in <code>target/src/main/java</code>, but eclipse try to pick it up exactly from <code>target/src</code>, assuming <code>main/java</code> is a java packet. If i manually add sources dir <code>target/src/main/java</code> in eclipse project settings, then <code>update maven project</code> won't work. How to setup m2e to work in maven-way and pickup sources from <code>${sourceDirectory}/main/java</code>?</p>