1. 程式人生 > >eclipse3.6.1安裝m2eclipse外掛

eclipse3.6.1安裝m2eclipse外掛

一、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/

實際測試發現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

實際測試subclipse不安裝也是可以的.

3、maven2 外掛地址:
m2eclipse-core Update Site: http://m2eclipse.sonatype.org/sites/m2e
m2eclipse-extras Update Site: http://m2eclipse.sonatype.org/sites/m2e-extras
注意 :必須兩個外掛都安裝,不安裝extras 外掛時,點選“run as server”來執行專案時會報錯:“the selected did not contain any resources that can run on server maven project”

三、安裝時出現問題:
直接線上安裝maven2 會出現依賴外掛找不到的問題,無法安裝。必須先安裝gef 外掛後才能安裝m2eclipse-core 外掛,然而安裝m2eclipse-extras 外掛又依賴subclipse 外掛。所以,三個外掛的正確的安裝順序是:gef外掛 》subclipse外掛 》m2eclipse外掛。
m2eclipse-core外掛 ——依賴——>gef外掛
m2eclipse-extras外掛 ——依賴——>subclipse外掛


安裝完成後,啟動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,一切完好。