Idea 新建springboot项目 spring-boot-starter-parent 包maven依赖报错

今天使用Idea导入spring-boot 项目时 maven 报错


    org.springframework.boot
    spring-boot-starter-parent
    1.5.15.RELEASE
     

然后感觉就是自己maven镜像里面搜不到这个包,所以找到maven的setting.xml 修改镜像 之后update poject 项目就开始下载pom.xml中的jar包啦

setting.xml 修改前

  
    
     
  

修改后


    
     
     mirrorId
      central
      Human Readable Name for this Mirror.
      http://central.maven.org/maven2/
       
  

具体为添加镜像

	 
     mirrorId
      central
      Human Readable Name for this Mirror.
      http://central.maven.org/maven2/
       
 

你可能感兴趣的:(Maven,项目错误处理)