diff --git a/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java b/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java index 6ef7c5fd1c..dd9e0b367a 100644 --- a/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java +++ b/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java @@ -112,9 +112,9 @@ public class SurefirePlugin surefireBooter.addClassPathUrl( new File( mavenRepoLocal, "surefire/jars/surefire-1.0.jar" ).getPath() ); - surefireBooter.addClassPathUrl( new File( basedir, classesDirectory ).getPath() ); + surefireBooter.addClassPathUrl( new File( classesDirectory ).getPath() ); - surefireBooter.addClassPathUrl( new File( basedir, testClassesDirectory ).getPath() ); + surefireBooter.addClassPathUrl( new File( testClassesDirectory ).getPath() ); for ( int i = 0; i < classpathElements.length; i++ ) {