We\'ve had an ongoing need here that I can\'t figure out how to address using the stock Maven 2 tools and documentation.
Some of our developers have some very long runni
Use an integration test plugin such as the Super Helpful Integration Test Thingy to separate Integration Tests (long running, systemic) from Unit Test (purists say 30 seconds max for all true unit tests to run). Make two Java packages for your unit tests versus integration tests.
Then do not bind this plugin to a phase (the normal maven lifecycle) and only run it when it is explicitly called as a target, like so:
mvn shitty:clean shitty:install shitty:test
org.codehaus.mojo
shitty-maven-plugin
This way, your normal developers will not be impacted, and you'll be able to run integration tests on demand.