在MyEclipse中集成maven

首先,我们下载maven,官网地址是http://maven.apache.org/。下载后,解压到本地即可

在MyEclipse中集成maven

1.修改conf文件下的settings.xml

设置<localRepository>D:\maven\repository</localRepository>,这是本地仓库的地址,以后所有的项目依赖的jar包都会下载到这个目录下。

2.配置MyEclipse

(1)集成本地maven

打开windows-->preferences-->maven-->Installations,如图

在MyEclipse中集成maven在MyEclipse中集成maven

点击图中add按钮,

在MyEclipse中集成maven

即完成maven的集成。

(2)设置用户个性化配置文件,我用的就是上面conf下的配置文件

在MyEclipse中集成maven在MyEclipse中集成maven

大功告成,就完成了把本地maven集成到MyEclipse中。