I want to package my test package to jar file . How to execute generate test-jar from maven plugin Surefire.
By using the following configuration you can create a jar from your tests:
org.apache.maven.plugins maven-jar-plugin 2.6 test-jar
To use such kind of artifact:
groupId artifactId test-jar version tests test