阿里云Maven私服配置

两种方法:

1、setting.xml

在$MAVEN_HOME的conf文件夹的setting.xml的标签里加入

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

或者C:\Users\Administrator\.m2\settings.xmll:


 <--C:\Users\Administrator\.m2\repository-->
 
    
       archiva.internal 
       admin 
       admin123 
    

    
       archiva.snapshots 
       admin 
       admin123 
    
 

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

2、pom.xml写入中配置


      
        maven-ali  
        http://maven.aliyun.com/nexus/content/groups/public;  
          
            true  
          
          
            true  
            always  
            fail  
          
      

你可能感兴趣的:(Maven)