Hi,

You can use the maven-jar-plugin [1]  with the test-jar goal.
Or you can use the maven-assembly-plugin [2] .

If what you want to do is only to package the tests classes in a jar file,
run mvn jar:test-jar. If you want it to be done automatically in your build,
configure the plugin in your pom.

[1] http://maven.apache.org/plugins/maven-jar-plugin/test-jar-mojo.html
[2] http://maven.apache.org/plugins/maven-assembly-plugin/


Regards.

Reply via email to