diff --git a/maven-compiler-plugin.spec b/maven-compiler-plugin.spec index ca8e48a..bb9e149 100644 --- a/maven-compiler-plugin.spec +++ b/maven-compiler-plugin.spec @@ -43,7 +43,7 @@ API documentation for %{name}. sed -i 's/ResolvePathsResult.ModuleNameSource/ModuleNameSource/' src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java # Replace path to junit in a test case with the system wide .jar -sed -i 's|localRepository,\ "junit/junit/3.8.1/junit-3.8.1.jar"|"%(find-jar junit)"|' src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java +sed -i 's|localRepository,\ "junit/junit/3.8.1/junit-3.8.1.jar"|"%(find-jar junit || find-jar javapackages-bootstrap/junit)"|' src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java %build %mvn_build