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
The following worked for Maven 3
POM.XML
org.apache.maven.plugins maven-jar-plugin 2.6 test-jar test-compile
ASSEMBLY FILE
demo/test-lib io.netty:netty-all ${project.groupId}:${project.artifactId}:test-jar true test