hadoop2.0 eclipse 源碼編譯

在eclipse下編譯hadoop2.0源碼
hadoop cdh4編譯
爲eclipse安裝maven插件
eclipse3.6.1安裝m2eclipse插件
 
 

1、eclipse 3.6.1下載地址[eclipse-jee-helios-SR1-win32.zip] php

 
2、插件地址 
一、gef 插件地址: 
 
實際測試發現eclipse 3.6.1已經安裝gef,僅僅缺乏zest插件,最小安裝zest的runtime便可,地址以下: 
 
 
在沒有安裝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] 
 
 
二、subclipse 插件地址: 
 

在Eclipse中添加SVN時,提示錯誤:html

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) 
 

三、maven2 插件地址:  java

m2eclipse-extras Update Site: ios

注意 :必須兩個插件都安裝,不安裝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:windows

 

   * http://download.eclipse.org/releases/indigojava-ee

 
 

3、安裝時出現問題: eclipse

直接在線安裝maven2 會出現依賴插件找不到的問題,沒法安裝。必須先安裝gef 插件後才能安裝m2eclipse-core 插件,然而安裝m2eclipse-extras 插件又依賴subclipse 插件。因此,三個插件的正確的安裝順序是:gef插件 》subclipse插件 》m2eclipse插件。
m2eclipse-core插件 ——依賴——>gef插件 
m2eclipse-extras插件 ——依賴——>subclipse插件 
 
 

離線安裝包:maven

 
 
在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,一切無缺。
相關文章
相關標籤/搜索