I have a jar in my maven repository that contains junit tests, which should be run in different projects, because it is able to inspect the project and test for certain feat
(This is just restating what is in a comment above from khmarbaise, but since it wasn't clarified, I think it's worth restating):
Use the test-classes directory instead of the classes folder as outputDirectory:
org.apache.maven.plugins
maven-dependency-plugin
unpack
process-test-classes
unpack
de.mwx.test
selenium-test-base
0.1
true
${project.build.directory}/test-classes