我是靠谱客的博主 魁梧月光,这篇文章主要介绍解决intelliJ idea maven 工程老是下不下来的问题,现在分享给大家,希望可以做个参考。

我在用intelliJ idea 写springboot 工程时,老是提示maven2 的地址下不下来工程。

解决:

在intellij Idea中: file->setting-> search "maven" -> 找到maven3 的默认目录: 我的是(D:Program Files (x86)JetBrainsIntelliJ IDEA 15.0.2pluginsmavenlibmaven3conf)

打开setting.xml ->找到<mirrors> </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>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>

 

保存,问题解决。

最后

以上就是魁梧月光最近收集整理的关于解决intelliJ idea maven 工程老是下不下来的问题的全部内容,更多相关解决intelliJ内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(107)

评论列表共有 0 条评论

立即
投稿
返回
顶部