In my project I have two modules (A,B)
depend on common module C
.
I would like A,B
share common configuration, such as repository configuration, plugin configuration, etc. In order to achieve this, C
is made the parent pom and A,B
inherit from it (no aggregation is required, so C
does not reference A,B
)
However, C
by itself contains some java code, along with unit tests. Now, if I run mvn test
inside C
nothing is executed. Supposedly, pom
-packaged modules should not include any code.
Is the above configuration terribly flawed? Should yet another common pom be introduced even though one already exists?