說(shuō)明
網(wǎng)上常見(jiàn)的有在線安裝(Install New Software)和離線安裝兩種,因?yàn)樗惭b的maven插件版本與eclipse的版本不一致,一直安裝不成功。
來(lái)源:https://www.cnblogs.com/f-anything/p/5970151.html
方案
1. 打開(kāi)eclipse,菜單“Help”-“Install New Software...”
2. 在Work with 地址欄輸入:http://download.eclipse.org/releases/juno (注意:juno是eclipse對(duì)應(yīng)的版本名稱,具體版本參照附件 ),稍等片刻:

3. 在filter框中輸入maven便能定位要安裝的插件,如圖:

4. 選擇“Collaboration”-“m2e - Maven Integration for Eclipse",并點(diǎn)擊next按鈕進(jìn)行安裝步驟。圖:

5.安裝完成重啟eclipse,菜單:Window --> preferences ,輸入maven進(jìn)行相關(guān)設(shè)置。
附件
Eclipse版本號(hào)
Eclipse 1.0 2001年11月7日(Win32/Linux32 Motif)
Eclipse 2.0 2002年6月27日(Linux32 Motif + GTK, and Solaris/QNX/AIX)
Eclipse 2.1 2003年3月27日(OSX first version)
Eclipse 3.0 2004年6月25日(首個(gè)OSGi版本)
Eclipse 3.1 2005年6月27日 版本代號(hào) IO 【木衛(wèi)1,伊奧】
Eclipse 3.2 2006年6月26日 版本代號(hào) Callisto 【木衛(wèi)四,卡里斯托 】
Eclipse 3.3 2007年6月27日 版本代號(hào) Eruopa 【木衛(wèi)二,歐羅巴 】
Eclipse 3.4 2008年6月25日 版本代號(hào) Ganymede 【木衛(wèi)三,蓋尼米德 】
Eclipse 3.5 2009年6月24日 版本代號(hào) Galileo 【伽利略】
Eclipse 3.6 2010年6月23日 版本代號(hào) Helios 【太陽(yáng)神】
Eclipse 3.7 2011年6月22日 版本代號(hào) Indigo 【靛青】
Eclipse 3.8/4.2 2012年6月27日 版本代號(hào) Juno 【婚神星】
Eclipse 4.3 2013年6月26日 版本代號(hào) Kepler 【開(kāi)普勒】
Eclipse 4.4 2014年6月25日 版本代號(hào) Luna 【月神】
Eclipse 4.5 2015年6月25日 版本代號(hào) Mars 【火星】
Eclipse 4.6 2016年6月25日 版本代號(hào) Neon【霓虹燈】