Idea配置Maven优先从本地仓库获取依赖



             Idea配置Maven优先从本地仓库获取依赖_第1张图片



idea配置maven依赖优先从指定本地仓库获取

在设置中搜索 Runner ,在VM Option中设置参数-DarchetypeCatalog=internal



Idea配置Maven优先从本地仓库获取依赖_第2张图片






    4.0.0
    
    
        org.springframework.boot
        spring-boot-starter-parent
        2.2.6.RELEASE
        
    
    org.jd.auth.data.security.server
    SSO-AuthServer-provider
    1.0-RELEASE
    pom
    
        SSO-Authentication-Server
        SSO-AuthServer-Gateway
        SSO-AuthServer-EurekaServer
        SSO-AuthServer-Config
        SSO-Mybatis-Generator
        SSO-Pay-Account-Server
        SSO-Business-Order-Server
    
    SSO-AuthServer-provider
    
        UTF-8
        1.8
        1.8
        1.18.22
        2.2.6.RELEASE
        2.2.6.RELEASE
        2.2.6.RELEASE
    

    
    
        
            repos
            Repository
            http://maven.aliyun.com/nexus/content/groups/public
        
        
            central
            Maven Repository Switchboard
            default
            http://repo1.maven.org/maven2
            
                false
            
        
    
    
    
        
            repos
            Repository
            http://maven.aliyun.com/nexus/content/groups/public
        
    


    
        
            org.springframework.cloud
            spring-cloud-starter-netflix-hystrix
            ${spring-cloud-starter-netflix-hystrix.version}
            
                
                    archaius-core
                    com.netflix.archaius
                
            
        
        
            org.springframework.cloud
            spring-cloud-starter-netflix-eureka-client
            ${spring-cloud-starter-netflix-eureka-client.version}
        
        
            org.projectlombok
            lombok
            ${lombok.version}
           
        
        
            cn.hutool
            hutool-all
            5.8.18
        
        
        
            org.mapstruct
            mapstruct
            1.5.3.Final
        
        
            org.mapstruct
            mapstruct-processor
            1.5.3.Final
        
        

        
        
            org.springframework.boot
            spring-boot-devtools
            ${spring-boot-devtools.version}
            true
        

    

    
        
            
                org.apache.maven.plugins
                maven-compiler-plugin
                
                    
                    ${maven.compiler.source.version}
                    
                    ${maven.compiler.target.version}
                    
                    ${project.build.sourceEncoding}
                    
                    true
                
            
            
                org.springframework.boot
                spring-boot-maven-plugin
                
                    true
                    true
                
            
        
    


你可能感兴趣的:(intellij-idea,maven,java)