maven下载地址
http://maven.apache.org/download.cgi
解压后如
1 |
G:\apache-maven-3.8.4-bin\apache-maven-3.8.4
|
配置环境变量
1
2
3 |
MAVEN_HOME G:\apache-maven-3.8.4-bin\apache-maven-3.8.4
Path %MAVEN_HOME%\bin
|
测试
IDEA配置maven
配置本地maven仓库
修改依赖下载地址
1 |
<mirrors> <br><!-- mirror | Specifies a repository mirror site to use instead of a given repository. <br>The repository that | this mirror serves has an ID that matches the mirrorOf element of this mirror. <br>IDs are used | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.| <br><mirror> <br> <id>mirrorId</id><br> <mirrorOf>repositoryId</mirrorOf><br> <name>Human Readable Name for thisMirror.</name><br> <url>http:
|
修改IDEA的maven配置
配置完成后新建项目会出现maven