diff --git a/hadoop-common-project/hadoop-annotations/pom.xml b/hadoop-common-project/hadoop-annotations/pom.xml
index be3d0c15b11..fdb04941cf8 100644
--- a/hadoop-common-project/hadoop-annotations/pom.xml
+++ b/hadoop-common-project/hadoop-annotations/pom.xml
@@ -34,7 +34,7 @@
jdiff
jdiff
- compile
+ provided
diff --git a/hadoop-common-project/hadoop-auth-examples/pom.xml b/hadoop-common-project/hadoop-auth-examples/pom.xml
index bb819896396..0c23d99deda 100644
--- a/hadoop-common-project/hadoop-auth-examples/pom.xml
+++ b/hadoop-common-project/hadoop-auth-examples/pom.xml
@@ -42,15 +42,20 @@
hadoop-auth
compile
+
+ org.slf4j
+ slf4j-api
+ compile
+
log4j
log4j
- compile
+ runtime
org.slf4j
slf4j-log4j12
- compile
+ runtime
diff --git a/hadoop-common-project/hadoop-auth/pom.xml b/hadoop-common-project/hadoop-auth/pom.xml
index 89e0dddf1d7..dc1c7d0135b 100644
--- a/hadoop-common-project/hadoop-auth/pom.xml
+++ b/hadoop-common-project/hadoop-auth/pom.xml
@@ -38,6 +38,7 @@
+
org.apache.hadoop
hadoop-annotations
provided
@@ -75,12 +76,12 @@
log4j
log4j
- compile
+ runtime
org.slf4j
slf4j-log4j12
- compile
+ runtime
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt
index 00e7142c39d..e14550d7b5a 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -86,6 +86,9 @@ Release 2.0.1-alpha - UNRELEASED
HADOOP-8687. Upgrade log4j to 1.2.17. (eli)
+ HADOOP-8278. Make sure components declare correct set of dependencies.
+ (tomwhite)
+
BUG FIXES
HADOOP-8372. NetUtils.normalizeHostName() incorrectly handles hostname
diff --git a/hadoop-common-project/hadoop-common/pom.xml b/hadoop-common-project/hadoop-common/pom.xml
index 37f6042941f..17e6b57e1ac 100644
--- a/hadoop-common-project/hadoop-common/pom.xml
+++ b/hadoop-common-project/hadoop-common/pom.xml
@@ -72,13 +72,13 @@
compile
- commons-net
- commons-net
+ commons-io
+ commons-io
compile
- commons-io
- commons-io
+ commons-net
+ commons-net
compile
@@ -97,17 +97,13 @@
compile
-
- asm
- asm
- compile
-
com.sun.jersey
jersey-core
compile
+
com.sun.jersey
jersey-json
compile
@@ -121,33 +117,28 @@
tomcat
jasper-compiler
- compile
+ runtime
tomcat
jasper-runtime
- compile
+ runtime
javax.servlet.jsp
jsp-api
- compile
+ runtime
commons-el
commons-el
- compile
+ runtime
commons-logging
commons-logging
compile
-
- commons-logging
- commons-logging-api
- compile
-
log4j
log4j
@@ -158,26 +149,6 @@
jets3t
compile
-
- org.apache.mina
- mina-core
- test
-
-
- org.apache.ftpserver
- ftplet-api
- test
-
-
- org.apache.ftpserver
- ftpserver-core
- test
-
-
- org.apache.ftpserver
- ftpserver-deprecated
- test
-
junit
junit
@@ -188,11 +159,6 @@
commons-lang
compile
-
- commons-collections
- commons-collections
- compile
-
commons-configuration
commons-configuration
@@ -206,16 +172,11 @@
org.slf4j
slf4j-log4j12
- compile
+ runtime
- org.eclipse.jdt
- core
- compile
-
-
- oro
- oro
+ org.codehaus.jackson
+ jackson-core-asl
compile
@@ -223,11 +184,6 @@
jackson-mapper-asl
compile
-
- org.aspectj
- aspectjrt
- compile
-
org.mockito
mockito-all
@@ -258,11 +214,6 @@
hadoop-auth
compile
-
- com.googlecode.json-simple
- json-simple
- compile
-
com.jcraft
jsch
diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFsShellReturnCode.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFsShellReturnCode.java
index e05d00a894a..c4cc64790c9 100644
--- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFsShellReturnCode.java
+++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFsShellReturnCode.java
@@ -31,7 +31,6 @@ import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.apache.ftpserver.command.impl.STAT;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.io.IOUtils;
import static org.apache.hadoop.fs.CommonConfigurationKeysPublic.FS_DEFAULT_NAME_KEY;
diff --git a/hadoop-hdfs-project/hadoop-hdfs-httpfs/pom.xml b/hadoop-hdfs-project/hadoop-hdfs-httpfs/pom.xml
index c3eb23923ec..d937f5db862 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-httpfs/pom.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs-httpfs/pom.xml
@@ -60,8 +60,13 @@
org.apache.hadoop
- hadoop-annotations
- provided
+ hadoop-auth
+ compile
+
+
+ com.sun.jersey
+ jersey-core
+ compile
com.sun.jersey
@@ -74,18 +79,8 @@
provided
- javax.servlet.jsp
- jsp-api
- provided
-
-
- commons-codec
- commons-codec
- compile
-
-
- org.jdom
- jdom
+ com.google.guava
+ guava
compile
@@ -93,6 +88,11 @@
json-simple
compile
+
+ org.mortbay.jetty
+ jetty
+ test
+
org.apache.hadoop
hadoop-common
@@ -248,7 +248,7 @@
org.slf4j
slf4j-log4j12
- compile
+ runtime
diff --git a/hadoop-hdfs-project/hadoop-hdfs/pom.xml b/hadoop-hdfs-project/hadoop-hdfs/pom.xml
index 99a9430344d..83d6f564828 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/pom.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs/pom.xml
@@ -38,18 +38,13 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
- org.aspectj
- aspectjtools
- test
-
-
- org.aspectj
- aspectjrt
- test
+ org.apache.hadoop
+ hadoop-annotations
+ provided
org.apache.hadoop
- hadoop-annotations
+ hadoop-auth
provided
@@ -63,6 +58,58 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
test
test-jar
+
+ org.apache.zookeeper
+ zookeeper
+ 3.4.2
+ test-jar
+ test
+
+
+ com.google.guava
+ guava
+ compile
+
+
+ org.mortbay.jetty
+ jetty
+ compile
+
+
+ org.mortbay.jetty
+ jetty-util
+ compile
+
+
+ com.sun.jersey
+ jersey-core
+ compile
+
+
+ com.sun.jersey
+ jersey-server
+ compile
+
+
+ commons-cli
+ commons-cli
+ compile
+
+
+ commons-codec
+ commons-codec
+ compile
+
+
+ commons-io
+ commons-io
+ compile
+
+
+ commons-lang
+ commons-lang
+ compile
+
commons-logging
commons-logging
@@ -73,6 +120,11 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
commons-daemon
compile
+
+ javax.servlet.jsp
+ jsp-api
+ compile
+
log4j
log4j
@@ -84,8 +136,8 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
compile
- org.apache.avro
- avro
+ javax.servlet
+ servlet-api
compile
@@ -98,28 +150,30 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
mockito-all
test
-
- org.apache.ant
- ant
- provided
-
-
- org.apache.zookeeper
- zookeeper
- 3.4.2
- provided
-
org.slf4j
slf4j-log4j12
provided
- org.apache.zookeeper
- zookeeper
- 3.4.2
- test-jar
- test
+ org.codehaus.jackson
+ jackson-core-asl
+ compile
+
+
+ org.codehaus.jackson
+ jackson-mapper-asl
+ compile
+
+
+ tomcat
+ jasper-runtime
+ compile
+
+
+ xmlenc
+ xmlenc
+ compile
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml b/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml
index b6cd293c33c..e3fcf6ca191 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml
@@ -37,9 +37,9 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
- org.apache.hadoop
- hadoop-annotations
- provided
+ commons-logging
+ commons-logging
+ compile
org.apache.hadoop
@@ -68,6 +68,16 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
bookkeeper-server
compile
+
+ org.apache.zookeeper
+ zookeeper
+ compile
+
+
+ com.google.guava
+ guava
+ compile
+
junit
junit
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestEditLog.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestEditLog.java
index a061cf666c0..fe874a8295a 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestEditLog.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestEditLog.java
@@ -48,12 +48,14 @@ import java.util.concurrent.Executors;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
+import org.apache.commons.io.FileUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.logging.impl.Log4JLogger;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.ChecksumException;
import org.apache.hadoop.fs.FileSystem;
+import org.apache.hadoop.fs.FileUtil;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.permission.FsPermission;
import org.apache.hadoop.fs.permission.PermissionStatus;
@@ -70,7 +72,6 @@ import org.apache.hadoop.test.GenericTestUtils;
import org.apache.hadoop.util.StringUtils;
import org.apache.hadoop.util.Time;
import org.apache.log4j.Level;
-import org.aspectj.util.FileUtil;
import org.junit.Test;
import org.mockito.Mockito;
@@ -611,14 +612,14 @@ public class TestEditLog {
LOG.info("Copying data directory aside to a hot backup");
File backupDir = new File(dfsDir.getParentFile(), "dfs.backup-while-running");
- FileUtil.copyDir(dfsDir, backupDir);;
+ FileUtils.copyDirectory(dfsDir, backupDir);
LOG.info("Shutting down cluster #1");
cluster.shutdown();
cluster = null;
// Now restore the backup
- FileUtil.deleteContents(dfsDir);
+ FileUtil.fullyDeleteContents(dfsDir);
backupDir.renameTo(dfsDir);
// Directory layout looks like:
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/util/TestAtomicFileOutputStream.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/util/TestAtomicFileOutputStream.java
index 9549356a7b0..ebbb4e22701 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/util/TestAtomicFileOutputStream.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/util/TestAtomicFileOutputStream.java
@@ -28,8 +28,8 @@ import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
+import org.apache.hadoop.fs.FileUtil;
import org.apache.hadoop.hdfs.DFSTestUtil;
-import org.aspectj.util.FileUtil;
import org.junit.Before;
import org.junit.Test;
@@ -50,7 +50,7 @@ public class TestAtomicFileOutputStream {
@Before
public void cleanupTestDir() throws IOException {
assertTrue(TEST_DIR.exists() || TEST_DIR.mkdirs());
- FileUtil.deleteContents(TEST_DIR);
+ FileUtil.fullyDeleteContents(TEST_DIR);
}
/**
diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-examples/pom.xml b/hadoop-mapreduce-project/hadoop-mapreduce-examples/pom.xml
index 28be190aeaf..1f2999a6d7c 100644
--- a/hadoop-mapreduce-project/hadoop-mapreduce-examples/pom.xml
+++ b/hadoop-mapreduce-project/hadoop-mapreduce-examples/pom.xml
@@ -35,6 +35,14 @@
+
+ commons-cli
+ commons-cli
+
+
+ commons-logging
+ commons-logging
+
org.apache.hadoop
hadoop-mapreduce-client-jobclient
@@ -86,11 +94,6 @@
test-jar
test
-
- org.apache.hadoop
- hadoop-mapreduce-client-hs
- provided
-
org.apache.hadoop
hadoop-mapreduce-client-hs
diff --git a/hadoop-yarn-project/hadoop-yarn/pom.xml b/hadoop-yarn-project/hadoop-yarn/pom.xml
index f226388db12..8b578ff732a 100644
--- a/hadoop-yarn-project/hadoop-yarn/pom.xml
+++ b/hadoop-yarn-project/hadoop-yarn/pom.xml
@@ -124,6 +124,10 @@
com.sun.jersey
jersey-server
+
+ com.sun.jersey
+ jersey-json
+
com.sun.jersey.contribs
jersey-guice
diff --git a/pom.xml b/pom.xml
index bab371d7d86..db9d77b796d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -258,6 +258,18 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+ 2.4
+
+
+
+ analyze-report
+
+
+
+