I am trying to move some integration tests into the project that assembles the final EAR. Test I want to run are in src/test/java/it. There is nothing in src/main. However, when the build executes tests dont run and following message is displayed:
[INFO] --- maven-failsafe-plugin:2.19.1:integration-test (integration-test) @ project ---
[INFO] No tests to run.
If I change the packaging tests execute with same exact failsafe configuration. Why and how is EAR plugin different? Is there a way to run tests after building an EAR?