本地安装maven

来源:互联网 发布:linux lamp集成环境 编辑:程序博客网 时间:2024/06/06 03:22
1.下载jdk对应maven,拷贝到任意位置
2.环境变量M2_HOME 指向E:\maven
  在path中添加;%M2_HOME%\bin;
3.配置本地仓库
首先找到maven解压目录的conf路径下的settings.xml文件,
找到<localRepository>E:\maven_localRepository</localRepository>这个节点,把这个节点的注释去掉
备注:可以默认,无需在eclipse里进行配置,对应图效果

(4).适用ide是myeclipse,卸载自带maven,删除带有maven的所有plugins
将m2eclipse插件plugins和features两个文件夹放入,根目录下
/MyEclipse/myPlugin\maven\eclipse\{features,plugins}
/MyEclipse/myPlugin\svn\eclipse\{features,plugins}

(5).在F:\MyEclipse\eclipse的link目录下新建maven.link文件
path=F:/MyEclipse/myPlugin/maven
-------------------------------------------------------
4.使用ide是eclipse(必须是java ee版本的,本人无意尝试standard版本无效)
将m2eclipse插件plugins和features两个文件夹放入,根目录下
/eclipse\myPlugin\maven\eclipse\{features,plugins}
/eclipse\myPlugin\svn\eclipse\{features,plugins}

5.在F:\eclipse跟目录下新建links文件夹,再新建maven.link文件
path=F:/eclipse/myPlugin/maven

----------离线安装SVN同理



在线安装
m2e - http://download.eclipse.org/technology/m2e/releases

SVN - http://subclipse.tigris.org/update_1.6.x


安装后的效果图



离线安装maven下载地址

0 0
原创粉丝点击