您的位置:首页 > 编程语言 > Java开发

hadoop2.0 eclipse 源码编译

2013-09-05 10:22 477 查看
在eclipse下编译hadoop2.0源码
http://www.cnblogs.com/meibenjin/archive/2013/07/05/3172889.html
hadoop cdh4编译
http://mopishv0.blog.163.com/blog/static/5445593220131253813806/
为eclipse安装maven插件
http://www.huqiwen.com/2012/04/26/eclipse-install-maven-plugin/
eclipse3.6.1安装m2eclipse插件
http://blog.csdn.net/mypop/article/details/6169283
m2e-extras - http://m2eclipse.sonatype.org/sites/m2e-extras

一、eclipse 3.6.1下载地址[eclipse-jee-helios-SR1-win32.zip]

http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/heliossr1

二、插件地址
1、gef 插件地址:
http://download.eclipse.org/tools/gef/updates/interim/
http://download.eclipse.org/tools/gef/updates/releases/

实际测试发现eclipse 3.6.1已经安装gef,仅仅缺少zest插件,最小安装zest的runtime即可,地址如下:

http://www.eclipse.org/downloads/download.php?file=/tools/gef/downloads/drops/3.6.1/R201009132020/GEF-zest-3.6.1.zip

在没有安装zest插件的话,直接安装m2eclipse插件会报出缺少依赖的错误,信息如下:

Cannot complete the install because one or more required items could not be found.
Software being installed: Maven Integration for Eclipse (Required) 0.10.0.20100209-0800 (org.maven.ide.eclipse.feature.feature.group 0.10.0.20100209-0800)
Missing requirement: Maven Integration for Eclipse (Editors) 0.10.0.20100209-0800 (org.maven.ide.eclipse.editor 0.10.0.20100209-0800) requires 'bundle org.eclipse.zest.core 0.0.0' but it could not be found
Cannot satisfy dependency:
From: Maven Integration for Eclipse (Required) 0.10.0.20100209-0800 (org.maven.ide.eclipse.feature.feature.group 0.10.0.20100209-0800)
To: org.maven.ide.eclipse.editor [0.10.0.20100209-0800]

2、subclipse 插件地址:
http://subclipse.tigris.org/update_1.6.x

在Eclipse中添加SVN时,提示错误:

Cannot complete the install because one or more required items could not be found.
Software being installed: Subclipse Integration for Mylyn 3.x (Optional) 3.0.0 (org.tigris.subversion.subclipse.mylyn.feature.group 3.0.0)
Missing requirement: Subclipse Integration for Mylyn 3.x (Optional) 3.0.0 (org.tigris.subversion.subclipse.mylyn.feature.group 3.0.0) requires 'org.eclipse.mylyn.tasks.core [3.0.0,4.0.0)' but it could not be found
解决方法:
不选中Subclipse中的Subclipse Integration for Mylyn 3.x (Optional)

3、maven2 插件地址:

m2eclipse-core Update Site: http://download.eclipse.org/technology/m2e/releases
m2eclipse-extras Update Site:

注意 :必须两个插件都安装,不安装extras 插件时,点击“run as server”来运行项目时会报错:“the selected did not contain any resources that can run on server maven project”

Since Eclipse 3.7 (Indigo), m2e is now hosted at eclipse.org. To install it, you just need to use the default Eclipse update site:

* http://download.eclipse.org/releases/kepler
* http://download.eclipse.org/releases/juno
* http://download.eclipse.org/releases/indigo

三、安装时出现问题:

直接在线安装maven2 会出现依赖插件找不到的问题,无法安装。必须先安装gef 插件后才能安装m2eclipse-core 插件,然而安装m2eclipse-extras 插件又依赖subclipse 插件。所以,三个插件的正确的安装顺序是:gef插件 》subclipse插件 》m2eclipse插件。
m2eclipse-core插件 ——依赖——>gef插件
m2eclipse-extras插件 ——依赖——>subclipse插件

离线安装包:

http://ishare.iask.sina.com.cn/f/36090147.html

在dropins目录下创建文件夹maven3

把解压出的features目录和plugins目录放到dropins下的maven3里就可以了,不用link方式。

目录

eclipse3.7

--plugins
--features
--links
------xxx.link(或者是xxx.txt)
--dropins
------xxx

----------plugins
----------features

测试
windows--首选项中有Maven

安装完成后,启动eclipse,你将还会看到如下提示:

安装m2eclipse插件后,重启Eclipse老是提示:

Eclipse is running in a JRE, but a JDK is required

Some Maven plugins may not work when importing projects or updating source folders.

-vm配置项必须在 –vmargs配置项前,是因为执行到-vmargs配置项已经选择了一个默认的JVM了。

所以在–vmargs前面加上这一句:

-vm
D:/Java/jdk1.6.0_10/bin/javaw.exe

ok,一切完好。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: