Generate source jars for tests

Closes #6125
This remindes me I gave this a shot some time ago but I couldn't make it work. Maven and I are not so close friends...the problem here is that the generated sources contain way too much stuff, including all of our test classes and rest-spec-api, you can check that by comparing the content of the test-sources and the tests jar.