if you follow the maven rules then your test classes are under src/test/java . maven never packs the contents of a subdirectory of test sources into an artifact.
you have (at least ...) 3 alternativs:
put tests with "normal" sources
if you REALLY want them to be packaged (why?), then you should put the test classes in src/main/java , where they will be treated as a regular source and their compiled classes packaged in an artifact (usually * .jar)
you face all possible problems. for example, your artifact will have a compilation dependent junit dependency, which may interfere with other modules using your jar.
you may also need to configure maven plugins to run tests to keep abreast of your test classes if you do (that is, if you ever want to run tests as part of your build). for example, reliable and fail-safe plugins.
configure maven jar plugin to build test container
see maven jar plugin documentation. they even have a section called "How to create a jar containing test classes" - the instructions there will result in your tests being packaged in a separate jar file (which is probably much better).
create a jar your way using the build plugin directly
yuo could disable the default execution of the jar plugin and instead add the execution of the plugin assembly to the packaging phase to create a jar. you will need to write assembly assembler for this (not as complicated as the link above does). this will give you complete control over what is included in the can. itβs best to start by copying one of the predefined assemblies
radai source share