diff --git a/pmd-dist/pom.xml b/pmd-dist/pom.xml
index 59c3076e03..ea56d1ccb6 100644
--- a/pmd-dist/pom.xml
+++ b/pmd-dist/pom.xml
@@ -234,6 +234,11 @@
junit
test
+
+ org.hamcrest
+ hamcrest
+ test
+
org.apache.commons
commons-compress
diff --git a/pmd-doc/pom.xml b/pmd-doc/pom.xml
index a2811d07ce..52ad783139 100644
--- a/pmd-doc/pom.xml
+++ b/pmd-doc/pom.xml
@@ -108,5 +108,10 @@
junit
test
+
+ org.hamcrest
+ hamcrest
+ test
+
diff --git a/pmd-java8/pom.xml b/pmd-java8/pom.xml
index 9e4bb0cf44..53aea03a99 100644
--- a/pmd-java8/pom.xml
+++ b/pmd-java8/pom.xml
@@ -61,5 +61,10 @@
junit
test
+
+ org.hamcrest
+ hamcrest
+ test
+