diff --git a/error-prone-contrib/pom.xml b/error-prone-contrib/pom.xml
index c6d84cfee1f..a27da56f31d 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