maven 配置多个 mirror 不生效问题

maven 配置多个 mirror 不生效问题

问题描述:配置了多个mirror , 当其中一个仓库没有时,另一个仓库有这个jar,提示下载不到问题,特别是ali maven 更新springboot 库滞后问题

需要 配置 setting.xml 文件

关键配置1


      alimaven
      aliyun maven
      	https://maven.aliyun.com/repository/public
      central        
   
   
	  
		central-repos  
		Central Repository  
		https://repo.maven.apache.org/maven2/  
		central 
	 

关键配置2


	
			alimaven
			
				
					aliyun
					http://maven.aliyun.com/nexus/content/groups/public/
					
						true
					
					
						true
						always
					
				
			
		
		
			central-repos
			
				
					maven-central
					https://repo.maven.apache.org/maven2/
					
						true
					
					
						true
						always
					
				
			
		
  

关键配置3

 
    alimaven
    central-repos
  

setting.xml 完整配置







  
  D:\maven\repo

  

  

  
  
    
  

  
  
    
  

  
  
    

    
  

  
	
      alimaven
      aliyun maven
      	https://maven.aliyun.com/repository/public
      central        
   
   
	  
		central-repos  
		Central Repository  
		https://repo.maven.apache.org/maven2/  
		central 
	 
	
	
		nexus-163
		central
		Nexus 163
		http://mirrors.163.com/maven/repository/maven-public/
	
  


  
		
			alimaven
			
				
					aliyun
					http://maven.aliyun.com/nexus/content/groups/public/
					
						true
					
					
						true
						always
					
				
			
		
		
			central-repos
			
				
					maven-central
					https://repo.maven.apache.org/maven2/
					
						true
					
					
						true
						always
					
				
			
		
  

  
    alimaven
    central-repos
  
  



你可能感兴趣的:(JAVA,spring-boot,MAVEN,maven,java,开发语言)