diff --git a/error-prone-contrib/pom.xml b/error-prone-contrib/pom.xml
index fba0ecc46c5..220bf3cc8c1 100644
--- a/error-prone-contrib/pom.xml
+++ b/error-prone-contrib/pom.xml
@@ -176,7 +176,7 @@
org.springframework
spring-context
- provided
+ test
org.springframework