Maven multi-repository configuration maven Alibaba Cloud mirror configuration

 

Original address: https://blog.csdn.net/csd_nuser/article/details/110119771

The goal of this blog is to integrate most commonly used software installation and usage instructions, and technical solutions release. Please continue to pay attention.

 

The red part is the key

!fireNexus, external:*    This sentence means that, except for [fireNexus’s own private warehouse] not going to Alibaba Cloud, all other warehouses are downloaded from Alibaba Cloud, and you can configure multiple

Such as: !fireNexus, !aaa, !bbb, external:* correspond to ID. The goal of this blog is to integrate most commonly used software installation and usage instructions, and technical solutions release. Please continue to pay attention.

        <mirror>
            <id>aliyun</id>
            <!--<mirrorOf>central</mirrorOf>-->
            <mirrorOf>!fireNexus,external:*</mirrorOf>
            <name>aliyun</name>
            <url>http://maven.aliyun.com/nexus/content/groups/public</url>
        </mirror>
        
        <mirror>
            <id>fireNexus</id>
            <mirrorOf>!aliyun,central</mirrorOf>
            <name>fireNexus</name>
            <url>http://nexus.cccc.com/repository/maven-public/</url>
        </mirror>

Guess you like

Origin blog.csdn.net/csd_nuser/article/details/110119771