How to compile all maven modules even if tests fail, but fail overall build if any tests fail
Context: I want to compile and test all modules in a multi-module project but if any fail either compilation or tests I want the overall build to fail. Default configurations either stop on the first failure or skip modules after a test failure Running: mvn clean install stops at the first failing module. If you add: mvn clean install -fae //fail at end then all modules are run, but if tests fail then any dependent modules are skpped: [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] --------------------------------------------------
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.