IDEA配置MAVEN
1.首先你安装和配置MAVEN(这里不会的看我的上一个博客)
https://blog.youkuaiyun.com/shuangkc/article/details/106578229
2.打开idea的settings
这里的路径是你放MAVEN的路径,
注意
1.这里的路径是选的
2.这个repo的路径是我在conf的同级路径下创建的
这里匹配成功了 但是要每次都新建项目的时候都运行MAVEN就要去在设置一个
如果你觉得你的MAVEN下载的速度慢,就在settings.xml中的标签下粘贴下面的仓库 注意:1.覆盖标签 2.看清楚不要粘贴在了<! —>注释里面了
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>uk</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://uk.maven.org/maven2/</url>
</mirror>
<mirror>
<id>CN</id>
<name>OSChina Central</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>nexus</id>
<name>internal nexus repository</name>
<!-- <url>http://192.168.1.100:8081/nexus/content/groups/public/</url>-->
<url>http://repo.maven.apache.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|
-->
</mirrors>