The goal: When maven 'package' is used, then all tests annotated with @category are skipped. When using 'install' they are executed. If in either build a junit test fails, the build fails.
So now we switched to Deltaspike's CdiTestRunner. And now the above mechanism doesn't work anymore:
# The integration tests are always executed ignoring the build phase (package, install...)
# If the integration fails the build doesn't fail.