How do you stop maven from trying to access http://repo.maven.apache.org?

后端 未结 3 1078
星月不相逢
星月不相逢 2020-12-02 07:59

The development machine cannot access the internet, and take about 60s to timeout. When I try to build, I see

Downloading: http://repo.maven.apache.org/mave         


        
3条回答
  •  北荒
    北荒 (楼主)
    2020-12-02 08:25

    All pom files inherit from the maven super POM http://maven.apache.org/ref/3.0.4/maven-model-builder/super-pom.html which contains this entry:

    
        
            central
            Central Repository
            http://repo.maven.apache.org/maven2
            default
            
                false
            
        
    
    

    Try setting this in your pom:

    
        
            central
            http://repo.dev.bloomberg.com/content/groups/public
            
                false
            
        
    
    
    
        
            central
            http://repo.dev.bloomberg.com/content/groups/public
            
                false
            
        
    
    

提交回复
热议问题