I do need to build the modules it depends on first, but I don't want to run their tests. I've tried various invocations with -am
-pl
, this is the most recent, and based on maven :: run only single test in multi-module project
mvn test -DfailIfNoTests=false -Dtest="**" -am -pl service-api test
All of these tests should be in the com.myapp.service
package, and packages below it. Ideally though, an answer won't rely on that.
Nothing I have tried works though? What's the magic invocation to compile process-resources for dependents, and run tests for just this module?