【工具使用】maven工程pom.xml中配置未生效

    
        
            spring-releases
            https://repo.spring.io/libs-release
        
    

以上是maven工程中配置的仓库,编译时发现并没有生效,发现是setting.xml中配置的仓库镜像问题所导致的:

  
     
            alimaven
            aliyun maven
            http://maven.aliyun.com/nexus/content/groups/public/
            central
        
        
      
      central  
      Central Repository  
      http://repo.maven.apache.org/maven2  
      *
        
  

发现第二个中的标签中写了*号,将*改为central即可,重新加载发现很多依赖包都自动下载了

你可能感兴趣的:(JAVA学习)