Maven produced jar include TestNG dependency. If project uses JGroups then all it dependencies automatically downloaded and attached to classpath. If project uses JUnit for unit test then Maven Surefire Plugin don't run them, cause find TestNG in classpath and searching for TestNG test suites.