johndobie.blogspot.com/2011/06/seperating-maven-unit-integration-tests.html, posted 2011 by peter in development howto java testing
In this example I will show how you can perform a standard Maven build whilst keeping your unit and integration tests in separate packages.
Other techniques specify using either a naming convention or a separate module to do this. This example allows true package separation and is self contained in a single profile so it can easily be used across projects. Alternative profiles can also be created for different types of test.
This solution lends itself well to generating code coverage metrics using Sonar and Jacoco.