diff --git a/pom.xml b/pom.xml
index 927eed45..82767116 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@ under the License.
org.apache.maven.plugins
maven-plugins
- 39
+ 40
@@ -68,10 +68,6 @@ under the License.
3.2.5
-
- 3.5
2.13.0
2.4.21
@@ -180,6 +176,13 @@ under the License.
${mavenVersion}
test
+
+
+ org.codehaus.plexus
+ plexus-xml
+ 3.0.0
+ test
+
org.mockito
mockito-core
@@ -208,22 +211,27 @@ under the License.
+
+
+
+ com.diffplug.spotless
+ spotless-maven-plugin
+
+
+
+ src/**/*.java
+
+
+
+
+
+
+
org.eclipse.sisu
sisu-maven-plugin
-
- com.diffplug.spotless
- spotless-maven-plugin
-
-
-
- src/**/*.java
-
-
-
-
@@ -236,8 +244,6 @@ under the License.
org.apache.maven.plugins
maven-invoker-plugin
-
- 3.5.0
integration-test
diff --git a/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java b/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java
index a19ce747..db723079 100644
--- a/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java
+++ b/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java
@@ -382,17 +382,9 @@ private TestCompilerMojo getTestCompilerMojo(CompilerMojo compilerMojo, String p
when(handler.isAddedToClasspath()).thenReturn(true);
when(junitArtifact.getArtifactHandler()).thenReturn(handler);
- File artifactFile;
- String localRepository = System.getProperty("localRepository");
- if (localRepository != null) {
- artifactFile = new File(localRepository, "junit/junit/3.8.1/junit-3.8.1.jar");
- } else {
- // for IDE
- String junitURI =
- org.junit.Test.class.getResource("Test.class").toURI().toString();
- junitURI = junitURI.substring("jar:".length(), junitURI.indexOf('!'));
- artifactFile = new File(URI.create(junitURI));
- }
+ String junitURI = org.junit.Test.class.getResource("Test.class").toURI().toString();
+ junitURI = junitURI.substring("jar:".length(), junitURI.indexOf('!'));
+ File artifactFile = new File(URI.create(junitURI));
when(junitArtifact.getFile()).thenReturn(artifactFile);
testClasspathList.add(artifactFile.getAbsolutePath());