I’m using Maven 3.2.2. In one of my child modules, I have this dependency …
<dependency> <groupId>org.mainco.subco</groupId> <artifactId>core</artifactId> <version>${project.parent.version}</version> <type>test-jar</type> <scope>test</scope> </dependency> Is there a way to get Maven to ignore this dependency when running my release plugin if I specify “-DskipTests” (or some other skip test option)? Here are my release plugin goals …
-Darguments="-DskipTests -P prod -Dcloudbees" -Dresume=false release:prepare release:perform I realize that I could work on the problem of getting that dependency built and ready to go, but this question specifically deals with Maven ignoring dependencies scoped as “test” when I do not intend to run any tests.
Thanks, - Dave