I have a parent pom A with children pom B, C and D. In the B, C and D, I have dependencies with the same type.
ie Parent Pom
<artifactID>blah</artifactID>
<modules>
<module>B</module>
<module>C</module>
<module>D</module>
</modules>
child Pom
<dependencies>
<dependency>
.
.
<scope>test</scope>
<type>test-jar</type>
</dependency>
</dependencies>
So far I have tried editing the plugin-surefire and that did not work when trying to exclude the test scope for the child poms.
My question is if there is a way to add a profile to the parent pom to exclude all dependencies with the type test-jar for all child poms. Thanks