diff --git a/maven-api-impl/pom.xml b/maven-api-impl/pom.xml
index 898c823ff0..9b5df9e7fc 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 7f9af1855d..b78e820f5c 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