IDEA新建Web项目时maven下载慢

Posted java-rui

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IDEA新建Web项目时maven下载慢相关的知识,希望对你有一定的参考价值。

在maven的配置文件中设置国内的镜像,此处推荐阿里的。如下

<mirrors>
<!-- 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.
|
-->
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>

</mirrors>

以上是关于IDEA新建Web项目时maven下载慢的主要内容,如果未能解决你的问题,请参考以下文章

IntelliJ IDEA 2016 2.5 安装 并使用其新建一个maven web项目部署发布

IntelliJ IDEA 解决maven web项目慢的问题

Idea新建maven web项目(基础篇)

idea新建maven web项目

IntelliJ IDEA 新建Maven web项目搭建tomcat服务器

IntelliJ IDEA 新建Maven web项目搭建tomcat服务器