I am using the tomcat7-maven-plugin to produce a jar that I can run containing one or more wars with appropriate configurations.
I'd like to start this jar prior to running integration tests and stop it when I'm done. I know the failsafe plugin is the way to go on the tests and it seems that typically you would use the cargo plugin to start an appserver and deploy your war(s). I'd like to run my jar instead of using cargo for more realistic testing.
How can I start my jar at the beginning of the test and stop at when I'm done? Ideally, I'd like to do this using plugins rather than having to write code myself.