Maven: Eclipse not correctly configuring paths in a project with a parent pom
eclipse, java, maven, parent-pom
Solution
Ops, silly me. A colleague of mine added to the pom a spurious configuration:
<build>
<sourceDirectory>src</sourceDirectory>
I just removed it from the configuration to use maven convention and everything worked fine. Thanks for the help.
Problem
I have a maven project that I correctly build through the command line (`mvn test`). It is structured this way: ``` pom.xml |-------subdir1/pom.xml |-------subdir2/pom.xml |-------subdir3/pom.xml ``` Inside each of the subprojects dir (subdir[1-3]), I have a structure of: ``` src/main/java src/test/java ``` When I import the project to Eclipse, or update the maven configuration (Alt-F5), the `src`dirs are incorrectly added to the BuildPath. I always need to manually remove them and add each one of the `java` dirs to have Eclipse correctly compiling. How do configure my project so Eclipse will always correctly add the build paths?