If you run "maven install" then the phases would be in this order:
pre-integration-test: start Cargo (web server)
integration-test: start tests
post-integratino-test: stop Cargo
However, if you just run "maven integration-test" to run the tests directly, "post-integration-test" phase is never called, which might lead to your cleanup process not being run.
So the workaround is to bind your clean up tasks to "integration-test" itself which will be run right after the tests run during that phase.