I have 3 Projects:
Build order is: 1. ParentProj, 2. ProjA, 3. ProjB (could not be changed!)
I want to tell maven to execute a TestSuite that is located in ProjB.
If I run the build with this command: mvn clean -e test -Dtest=AllServiceTests
, the build will fail because maven could not find the "AllServiceTests"-class in ProjA, which is build before ProjB.
Is there any solution for this problem? (Changing the build order is no solution)
I just found the solution:
clean install test -Dtest=myTestSuite -DfailIfNoTests=false
-DfailIfNoTests=false
will force maven to continue with the build if ProjA contains no Test classes.
That finally fixed my problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With