On a recent project we needed to tune MAVEN to run unit tests and integration tests separately.
When we execute “mvn test” we want just our unit tests to run, and when we execute “mvn integration-test” we want integration tests to run. Of course the unit tests will run as well because they are a dependency.
This is not as simple as it could be in MAVEN so I’m sharing the working plugin configuration with you. Here it is:
<!– Ensure Maven inhierits exclude –>