国内maven私服-阿里云私库

原文:https://blog.csdn.net/zhiyouwu/article/details/53439917

1、修改maven的setting文件


    
	    
       nexus-aliyun    
       *    
       Nexus aliyun    
       http://maven.aliyun.com/nexus/content/groups/public    
    	
  

 

2、pom设置远程仓库


        

    central
    http://maven.aliyun.com/nexus/content/groups/public/
    aliyun



        
            springsource-repos
            SpringSource Repository
            http://repo.spring.io/release/
        
        
            central-repos
            Central Repository
            http://repo.maven.apache.org/maven2
        
        
            central-repos2
            Central Repository 2
            http://repo1.maven.org/maven2/
        
    

    
        central
        http://maven.aliyun.com/nexus/content/groups/public/
        aliyun
    

两种方式都可以

 

 

你可能感兴趣的:(java)