The following piece of code is taken from the 'test:test' goal. It processes the 'maven.junit.jvmargs' property and copies each token to the command line for the junit task. This includes -classpath and -cp tokens and their associated search paths.
${maven.junit.jvmargs}
In the next piece of code I have changed the block above to recognise classpath tokens and include their associated search paths in the classpath for the junit task.