m2e及extras的装配和使用
1.安装eclipse的maven插件 m2e(http://wiki.eclipse.org/M2E_updatesite_and_gittags)
Help->Install New Software...
在work with中填入我们需要安装m2e的版本url:
http://download.eclipse.org/technology/m2e/releases/1.1/1.1.0.20120530-0009
选择Mave Integration for Eclipse 进行安装
重启即可完成安装
此外,由于上面连接貌似近期无效,可通过Eclipse Market在线安装,如图:
中间 Maven Integration for Eclipse(Juno and newer) Install即可,注意Eclipse版本号,这个一般都能安装成功。
Eclipse会下载m2eclipse安装站点上的资源信息。等待资源载入完成之后,我们再将其全部展开,
选择后点击Next >,Eclipse会自动计算模块间依赖,然后给出一个将被安装的模块列表,确认无误后,继续点击Next >,这时我们会看到许可证信息,m2eclipse使用的开源许可证是Eclipse Public License v1.0,选择I accept the terms of the license agreements,然后点击Finish,接着就耐心等待Eclipse下载安装这些模块
2.m2e-extras的安装
windows->Perferences->Maven->Discovery->Open Catalog
选择我们需要安装的组件:比较常用的是与svn的整合组件
在这之前需要保证安装了svn插件subclipse
在work with中填入我们需要安装subclipse的版本url:
http://subclipse.tigris.org/update_1.6.x
安装成功后重启既可以安装2个组件了
插件都安装之后
File->Import->Maven->Check out Maven Projects from SCM
整合成功!!!