How can I build a jar (with maven) which contains the test classes and the test dependencies.
I know how to create a jar with dependencies (using the assembly plugin) for the classes and dependencies for the ‘main’ classes but I need the test classes and test dependencies.
I know I can use the jar plugin to create a jar with test classes but this doesn’t contain the test dependencies.
TIA
You can probably achieve by combining the maven-dependency-plugin:copyDependencies with the assembly plugin.
Your descriptor: