Skip to content

Commit b43b075

Browse files
author
Suresh Srinivas
committed
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
1 parent 31453f6 commit b43b075

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

BUILDING.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,33 @@ Maven build goals:
8787
* -Dtest.exclude=<TESTCLASSNAME>
8888
* -Dtest.exclude.pattern=**/<TESTCLASSNAME1>.java,**/<TESTCLASSNAME2>.java
8989

90+
----------------------------------------------------------------------------------
91+
Building components separately
92+
93+
If you are building a submodule directory, all the hadoop dependencies this
94+
submodule has will be resolved as all other 3rd party dependencies. This is,
95+
from the Maven cache or from a Maven repository (if not available in the cache
96+
or the SNAPSHOT 'timed out').
97+
An alternative is to run 'mvn install -DskipTests' from Hadoop source top
98+
level once; and then work from the submodule. Keep in mind that SNAPSHOTs
99+
time out after a while, using the Maven '-nsu' will stop Maven from trying
100+
to update SNAPSHOTs from external repos.
101+
102+
----------------------------------------------------------------------------------
103+
Importing projects to eclipse
104+
105+
When you import the project to eclipse, install hadoop-maven-plugins at first.
106+
107+
$ cd hadoop-maven-plugins
108+
$ mvn install
109+
110+
Then, generate ecplise project files.
111+
112+
$ mvn eclipse:eclipse -DskipTests
113+
114+
At last, import to eclipse by specifying the root directory of the project via
115+
[File] > [Import] > [Existing Projects into Workspace].
116+
90117
----------------------------------------------------------------------------------
91118
Building distributions:
92119

hadoop-common-project/hadoop-common/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,9 @@ Release 2.0.4-beta - UNRELEASED
355355

356356
HADOOP-9117. replace protoc ant plugin exec with a maven plugin. (tucu)
357357

358+
HADOOP-9279. Document the need to build hadoop-maven-plugins for
359+
eclipse and separate project builds. (Tsuyoshi Ozawa via suresh)
360+
358361
OPTIMIZATIONS
359362

360363
BUG FIXES

0 commit comments

Comments
 (0)