I have a project with src/main/java and src/test/java structure, and I managed to use maven-jar-plugin to build a jar of the test branch. However, I want to package the test
me.wener.xxx xxx-core ${xxx.version} test-jar
I use this to include the test jar.the important line is test-jar.I am not sure this is what you need.
test-jar
3 years ago, but may help others.At least, it helped me. :-)