I have a multi-module maven project. one of the modules (module-A) let me create an executable jar. This jar is normally executed from a third party application and communicate via stdin/stdout.
a second one (module-B) is an integration test. In this module I want to verify that the third party process can communicate succesfully and my jar can behave in the expected way.
at the moment, if I do some changes to module-A source code, I need to firstly mvn package
the module to get the new jar and then I can run the tests in module-B.
what is the best way to tell module-B to firstly package module-A before running the tests?