You don't need any mavenisms in the test, only in pulling in the sources jar into the test's classpath.  In ant you would just include that jar in the classpath, similarly in google's build system internally.  Building the jar is needless where there is a jar already handy. 

Nothing wrong with what you're doing, but why not re-use a published jar of sources that are already available to all comers?