eclipse 安裝 maven外掛程式

來源:互聯網
上載者:User

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

2、subclipse 外掛程式地址:
http://subclipse.tigris.org/update_1.6.x

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,一切完好。。。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.