Maven Settings for multiple repositories

前端 未结 4 1934
無奈伤痛
無奈伤痛 2020-12-13 04:37

I have the following in settings.xml


       
          paid-jars         


        
4条回答
  •  遥遥无期
    2020-12-13 04:58

    In settings.xml, defining mirror with id and url for the repository besides using the same in profile worked for me, as below:

    
           
            Artifactory      
            http://localhost:4900/archiva/repository/
            artifactory
           
           
            MavenCentral       
            https://repo.maven.apache.org/maven2
            central
           
    
    
    
        
            Project
            
               1.0.9      
               false
               false 
               false               
               1.8
               1.8
               
            
               
                    Artifactory
                    Maven Artifactory for Project
                    http://localhost:4900/archiva/repository/
                    default
                    
                            true
                            never
                    
                    
                            true
                            never
                    
                
                
                    MavenCentral
                    https://repo.maven.apache.org/maven2/
                
                         
         
         
    

提交回复
热议问题