Use Maven Surefire plugin for unit tests only and Maven Failsafe plugin for integration tests. Run separately on Travis.