From 2552a772059267d00f2f5b962bca6bf44e4a6e06 Mon Sep 17 00:00:00 2001 From: Suresh Srinivas Date: Sun, 24 Feb 2013 20:19:42 +0000 Subject: [PATCH] HADOOP-9279. Document the need to build hadoop-maven-plugins for eclipse and separate project builds. Contributed by Tsuyoshi Ozawa. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1449543 13f79535-47bb-0310-9956-ffa450edef68 --- BUILDING.txt | 27 +++++++++++++++++++ .../hadoop-common/CHANGES.txt | 3 +++ 2 files changed, 30 insertions(+) diff --git a/BUILDING.txt b/BUILDING.txt index 95e36bd539..c2e7901c11 100644 --- a/BUILDING.txt +++ b/BUILDING.txt @@ -87,6 +87,33 @@ Maven build goals: * -Dtest.exclude= * -Dtest.exclude.pattern=**/.java,**/.java +---------------------------------------------------------------------------------- +Building components separately + +If you are building a submodule directory, all the hadoop dependencies this +submodule has will be resolved as all other 3rd party dependencies. This is, +from the Maven cache or from a Maven repository (if not available in the cache +or the SNAPSHOT 'timed out'). +An alternative is to run 'mvn install -DskipTests' from Hadoop source top +level once; and then work from the submodule. Keep in mind that SNAPSHOTs +time out after a while, using the Maven '-nsu' will stop Maven from trying +to update SNAPSHOTs from external repos. + +---------------------------------------------------------------------------------- +Importing projects to eclipse + +When you import the project to eclipse, install hadoop-maven-plugins at first. + + $ cd hadoop-maven-plugins + $ mvn install + +Then, generate ecplise project files. + + $ mvn eclipse:eclipse -DskipTests + +At last, import to eclipse by specifying the root directory of the project via +[File] > [Import] > [Existing Projects into Workspace]. + ---------------------------------------------------------------------------------- Building distributions: diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index ceb3fd412f..bf0bea5e03 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -355,6 +355,9 @@ Release 2.0.4-beta - UNRELEASED HADOOP-9117. replace protoc ant plugin exec with a maven plugin. (tucu) + HADOOP-9279. Document the need to build hadoop-maven-plugins for + eclipse and separate project builds. (Tsuyoshi Ozawa via suresh) + OPTIMIZATIONS BUG FIXES