1.下载maven包
2.配置环境变量
2.1. M2_HOME D:\apache-maven-3.0.5
2.2. PathD:\apache-maven-3.0.5\bin
3.配置repons库
3.1.创建文件夹(库位置)D:\ja\maven\repos
3.2.更改D:\apache-maven-3.0.5\conf下settings.xml的53行配置为<localRepository>D:/ja/maven/repos</localRepository>
3.3.将D:\apache-maven-3.0.5\conf下settings.xml拷贝到D:\ja\maven下(和repos同级)
4.配置eclipse默认maven
4.1.打开eclipse下window的preference,搜索maven
4.2.installations更改为本地 D:\apache-maven-3.0.5
4.3.user settings更改为本地D:\ja\maven\settings.xml
5.创建maven工程,选择group
6.本地nexus配置(可选)
2.配置环境变量
2.1. M2_HOME D:\apache-maven-3.0.5
2.2. PathD:\apache-maven-3.0.5\bin
3.配置repons库
3.1.创建文件夹(库位置)D:\ja\maven\repos
3.2.更改D:\apache-maven-3.0.5\conf下settings.xml的53行配置为<localRepository>D:/ja/maven/repos</localRepository>
3.3.将D:\apache-maven-3.0.5\conf下settings.xml拷贝到D:\ja\maven下(和repos同级)
4.配置eclipse默认maven
4.1.打开eclipse下window的preference,搜索maven
4.2.installations更改为本地 D:\apache-maven-3.0.5
4.3.user settings更改为本地D:\ja\maven\settings.xml
5.创建maven工程,选择group
6.本地nexus配置(可选)