idea中maven下载依赖包慢

需要配置阿里云的镜像,在maven的conf/settings下

<mirrors>
  

  <mirror>
    <id>alimavenid>
    <name>aliyun mavenname>
    <url>http://maven.aliyun.com/nexus/content/groups/public/url>
    <mirrorOf>centralmirrorOf>
  mirror>

  <mirror> 
    <id>ukid>  
    <mirrorOf>centralmirrorOf>  
    <name>Human Readable Name for this Mirror.name>  
    <url>http://uk.maven.org/maven2/url> 
  mirror>

   <mirror>
    <id>CNid>
    <name>OSChina Centralname>
    <url>http://maven.oschina.net/content/groups/public/url>
    <mirrorOf>centralmirrorOf>
  mirror>

  <mirror>
    <id>nexusid>
    <name>internal nexus repositoryname>
    
    <url>http://repo.maven.apache.org/maven2url>
    <mirrorOf>centralmirrorOf>
  mirror>

mirrors>

其实更关键的原因像是下错了maven的安装包,在官网上应该下tar.gz的包

你可能感兴趣的:(maven,ide)