如何配置eclipse-maven-plugin

如题所述

1.下载Maven安装包
下载apache-maven-3.2.3-bin.zip并解压到指定的安装目录
2.配置Maven环境
(1)maven的环境变量配置(path和maven_home)
(2)修改conf/settings.xml文件
<span style="font-size:18px;"><localRepository>D:/maven-repository</localRepository></span>

3.eclipse-maven-plugin安装配置
(1)下载eclipse-maven3-plugin.zip并解压到指定的目录下

(2)在eclipse安装目录下(E:\eclipse 3.7\dropins)新建maven.link文件,其内容为
<span style="font-size:18px;">path=D:/eclipse-maven3-plugin/eclipse</span>

4、了使能够在Eclipse中使用的Maven插件,需要让eclipse中的maven重新定位到刚才安装的maven主目录
Window -> Preference -> Maven -> Installation -> Add

到这步为止,maven安装配置基本完毕,现在可以开始使用Maven了
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答