diff --git a/maven-api-impl/pom.xml b/maven-api-impl/pom.xml
index 898c823ff057..9b5df9e7fc39 100644
--- a/maven-api-impl/pom.xml
+++ b/maven-api-impl/pom.xml
@@ -131,6 +131,7 @@ under the License.
org.assertj
assertj-core
+ test
org.apache.maven.resolver
diff --git a/pom.xml b/pom.xml
index 7f9af1855d01..b78e820f5cd4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -534,6 +534,12 @@ under the License.
org.apache.maven.resolver
maven-resolver-spi
${resolverVersion}
+
+
+ com.google.errorprone
+ error_prone_annotations
+
+
org.apache.maven.resolver