国内网络环境决定, 很多开发工作, 软件包管理软件需要配置镜像才能相对正常工作, maven也不例外。

添加配置文件 ~/.m2/settings.xml



    
        
        
            alimaven
            central
            aliyun maven
            http://maven.aliyun.com/nexus/content/repositories/central/
        

        
        
            repo1
            central
            Human Readable Name for this Mirror.
            http://repo1.maven.org/maven2/
        

        
        
            repo2
            central
            Human Readable Name for this Mirror.
            http://repo2.maven.org/maven2/
        
    

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注