說明
網上常見的有在線安裝(Install New Software)和離線安裝兩種叔锐,因為所安裝的maven插件版本與eclipse的版本不一致午绳,一直安裝不成功。
來源:https://www.cnblogs.com/f-anything/p/5970151.html
方案
1. 打開eclipse秃励,菜單“Help”-“Install New Software...”
2. 在Work with 地址欄輸入:http://download.eclipse.org/releases/juno (注意:juno是eclipse對應的版本名稱便锨,具體版本參照附件 )围辙,稍等片刻:
3. 在filter框中輸入maven便能定位要安裝的插件,如圖:
4. 選擇“Collaboration”-“m2e - Maven Integration for Eclipse"鸿秆,并點擊next按鈕進行安裝步驟酌畜。圖:
5.安裝完成重啟eclipse,菜單:Window --> preferences 卿叽,輸入maven進行相關設置桥胞。
附件
Eclipse版本號
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日(首個OSGi版本)
Eclipse 3.1 2005年6月27日 版本代號 IO 【木衛(wèi)1,伊奧】
Eclipse 3.2 2006年6月26日 版本代號 Callisto 【木衛(wèi)四考婴,卡里斯托 】
Eclipse 3.3 2007年6月27日 版本代號 Eruopa 【木衛(wèi)二贩虾,歐羅巴 】
Eclipse 3.4 2008年6月25日 版本代號 Ganymede 【木衛(wèi)三,蓋尼米德 】
Eclipse 3.5 2009年6月24日 版本代號 Galileo 【伽利略】
Eclipse 3.6 2010年6月23日 版本代號 Helios 【太陽神】
Eclipse 3.7 2011年6月22日 版本代號 Indigo 【靛青】
Eclipse 3.8/4.2 2012年6月27日 版本代號 Juno 【婚神星】
Eclipse 4.3 2013年6月26日 版本代號 Kepler 【開普勒】
Eclipse 4.4 2014年6月25日 版本代號 Luna 【月神】
Eclipse 4.5 2015年6月25日 版本代號 Mars 【火星】
Eclipse 4.6 2016年6月25日 版本代號 Neon【霓虹燈】