Replace maven-invoker tests with Test-Compile tests.