I have a multi-module project:
- Module A
- Module B
Module B contains tests that depend on Module A running (ie. in an application server).
Right now, whenever I run
mvn install Module A builds before Module B. There are two goals that execute during each build that start the module and then stop the module. The tests run in between these two goals; ie. start module > run tests > stop module
My problem right on is that Module A starts and stops before Module B runs its tests. Since the tests for Module B depend on Module A being started, they ultimately fail.
Is there any way to execute the start goals for both of these modules concurrently? ie. Module A starts > Module B starts > Module B runs its tests > Module A stops > Module B stops.