diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt
index 69df1b392da..f48546e0d42 100644
--- a/hadoop-mapreduce-project/CHANGES.txt
+++ b/hadoop-mapreduce-project/CHANGES.txt
@@ -173,6 +173,9 @@ Release 2.3.0 - UNRELEASED
MAPREDUCE-5431. Missing pom dependency in MR-client (Timothy St. Clair
via stevel)
+ MAPREDUCE-5624 Move grizzly-test and junit dependencies to test scope
+ (Ted Yu via stevel)
+
OPTIMIZATIONS
MAPREDUCE-5484. YarnChild unnecessarily loads job conf twice (Sandy Ryza)
diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/pom.xml b/hadoop-mapreduce-project/hadoop-mapreduce-client/pom.xml
index 051fce20dea..6657662b35d 100644
--- a/hadoop-mapreduce-project/hadoop-mapreduce-client/pom.xml
+++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/pom.xml
@@ -163,6 +163,11 @@
commons-collections
provided
+
+ com.sun.jersey.jersey-test-framework
+ jersey-test-framework-grizzly2
+ test
+
diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-examples/pom.xml b/hadoop-mapreduce-project/hadoop-mapreduce-examples/pom.xml
index 199791eedbf..a94e663ee8a 100644
--- a/hadoop-mapreduce-project/hadoop-mapreduce-examples/pom.xml
+++ b/hadoop-mapreduce-project/hadoop-mapreduce-examples/pom.xml
@@ -93,6 +93,11 @@
test-jar
test
+
+ com.sun.jersey.jersey-test-framework
+ jersey-test-framework-grizzly2
+ test
+
org.apache.hadoop
hadoop-mapreduce-client-hs
diff --git a/hadoop-tools/hadoop-archives/pom.xml b/hadoop-tools/hadoop-archives/pom.xml
index f472c6f3e5e..5334f48ff47 100644
--- a/hadoop-tools/hadoop-archives/pom.xml
+++ b/hadoop-tools/hadoop-archives/pom.xml
@@ -35,6 +35,11 @@
+
+ junit
+ junit
+ test
+
org.apache.hadoop
hadoop-annotations
diff --git a/hadoop-tools/hadoop-datajoin/pom.xml b/hadoop-tools/hadoop-datajoin/pom.xml
index 984682ff5cc..a4d00f8cf88 100644
--- a/hadoop-tools/hadoop-datajoin/pom.xml
+++ b/hadoop-tools/hadoop-datajoin/pom.xml
@@ -32,6 +32,11 @@
+
+ junit
+ junit
+ test
+
org.apache.hadoop
hadoop-annotations
diff --git a/hadoop-tools/hadoop-distcp/pom.xml b/hadoop-tools/hadoop-distcp/pom.xml
index aaf2d59579b..1768a265d5f 100644
--- a/hadoop-tools/hadoop-distcp/pom.xml
+++ b/hadoop-tools/hadoop-distcp/pom.xml
@@ -37,6 +37,11 @@
+
+ junit
+ junit
+ test
+
org.apache.hadoop
hadoop-common
diff --git a/hadoop-tools/hadoop-extras/pom.xml b/hadoop-tools/hadoop-extras/pom.xml
index 1087b53dad1..eb9aad8451e 100644
--- a/hadoop-tools/hadoop-extras/pom.xml
+++ b/hadoop-tools/hadoop-extras/pom.xml
@@ -35,6 +35,11 @@
+
+ junit
+ junit
+ test
+
org.apache.hadoop
hadoop-annotations
diff --git a/hadoop-tools/hadoop-gridmix/pom.xml b/hadoop-tools/hadoop-gridmix/pom.xml
index 1aeaa73b759..a3cac91406a 100644
--- a/hadoop-tools/hadoop-gridmix/pom.xml
+++ b/hadoop-tools/hadoop-gridmix/pom.xml
@@ -32,6 +32,11 @@
+
+ junit
+ junit
+ test
+
org.apache.hadoop
hadoop-annotations
diff --git a/hadoop-tools/hadoop-rumen/pom.xml b/hadoop-tools/hadoop-rumen/pom.xml
index abeaf535eb8..0475128a363 100644
--- a/hadoop-tools/hadoop-rumen/pom.xml
+++ b/hadoop-tools/hadoop-rumen/pom.xml
@@ -35,6 +35,11 @@
+
+ junit
+ junit
+ test
+
org.apache.hadoop
hadoop-annotations
diff --git a/hadoop-tools/hadoop-streaming/pom.xml b/hadoop-tools/hadoop-streaming/pom.xml
index 7265c0468d5..b6e4931fc71 100644
--- a/hadoop-tools/hadoop-streaming/pom.xml
+++ b/hadoop-tools/hadoop-streaming/pom.xml
@@ -36,6 +36,11 @@
+
+ junit
+ junit
+ test
+
org.apache.hadoop
hadoop-annotations
diff --git a/hadoop-yarn-project/hadoop-yarn/pom.xml b/hadoop-yarn-project/hadoop-yarn/pom.xml
index 4764b19ff74..d9d9b9c945b 100644
--- a/hadoop-yarn-project/hadoop-yarn/pom.xml
+++ b/hadoop-yarn-project/hadoop-yarn/pom.xml
@@ -119,6 +119,7 @@
com.sun.jersey.jersey-test-framework
jersey-test-framework-grizzly2
+ test
com.sun.jersey