How can I generate a source jar of the test classes?

Use the source:test-jar goal to generate a jar file that contains the project test sources.

[top]