標籤:
曾經安裝過幾次Maven,都出現了不同的錯誤,下面是關於
Maven的Eclipse外掛程式m2eclipse的安裝指導
The goal of the m2ec project is to provide a first-class Apache Maven support in the Eclipse IDE, making it easier to edit Maven‘s pom.xml, run a build from the IDE and much more. For Java developers, the very tight integration with JDT greatly simplifies the consumption of Java artifacts either being hosted on open source repositories such as Maven Central, or in your in-house Maven repository.
m2e is also a platform that let others provide better integration with additional Maven plugins (e.g. Android, web development, etc.), and facilitates the distribution of those extensions through the m2e marketplace.
m2ec項目
m2eclipse外掛程式是Eclipse的一款Maven外掛程式。
安裝m2eclipse外掛程式的過程如下:
啟動Eclipse,在功能表列中選擇Help,然後選擇Install New Software…,可以看到一個Install對話方塊,點擊Work with:欄位邊上的Add按鈕,會得到一個新的Add Repository對話方塊,在Name欄位中輸入m2e,Location欄位中輸入http://download.eclipse.org/technology/m2e/releases,然後點擊OK。Eclipse會下載m2eclipse安裝網站上的資源資訊。等待資源載入完成之後,可以看到圖所示的介面:
線上更新地址:
http://download.eclipse.org/technology/m2e/releases
顯示了m2eclipse的核心模組Maven Integration for Eclipse (Required),選擇“Maven Integration for Eclipse”後點擊Next;Eclipse會自動計算模組間的依賴關係,然後給出一個將被安裝的模組列表;確認無誤後,繼續點擊Next;看到許可證資訊,m2eclipse使用的開源許可證是Eclipse Public License v1.0,選擇I accept the terms of the license agreements,然後點擊Finish;Eclipse開始下載安裝選擇的模組。
eclipse maven外掛程式安裝教程