score:0

Accepted answer

the solution to the problem was that i had declared dw-web in the parent pom both as a module and dependency. after removing the dependency declaration the project compiled.

score:1

the "parent" pom should be an "aggregator", that is it should include modules of both dw-web and dw-test and itself have a packaging pom:

<project>
    ...
     <packaging>pom</packaging>

     <modules>
        <module>dw-web</module>
        <module>dw-test</module>
     </modules>
</project>

with this setup, maven will automatically resolve the dependency graph and compile everything in the correct order (dw-web first, and dw-test afterwards).

so make sure that you have such a setup. of course there can be other reasons as well, the best would be adding relevant code snippets from all the pom files in the question.


Related Query

More Query from same tag