ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

aliyun maven settings.xml

2022-04-15 14:01:24  阅读:58  来源: 互联网

标签:xml repository nexus aliyunmaven maven aliyun com


<?xml version="1.0" encoding="UTF-8"?>

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

  

    

    <localRepository>D:/repository</localRepository>

   

 

    <pluginGroups>

       

    </pluginGroups>

 

     <proxies>

        

    </proxies>

 

    <servers>

      

    </servers>

    <!--

        <mirrorOf>central</mirrorOf> 这里最好不要写成*号,否则你项目中的pom中配置repository不生效

    -->

    <mirrors>

        <mirror>

        <id>aliyunmaven</id>

         <mirrorOf>*</mirrorOf>

         <name>阿里云公共仓库</name>

     <url>https://maven.aliyun.com/repository/public</url>

    </mirror>

     <mirror>

     <id>aliyunmaven</id>

     <mirrorOf>*</mirrorOf>

     <name>阿里云谷歌仓库</name>

     <url>https://maven.aliyun.com/repository/google</url>

    </mirror>

    <mirror>

     <id>aliyunmaven</id>

     <mirrorOf>*</mirrorOf>

     <name>阿里云阿帕奇仓库</name>

     <url>https://maven.aliyun.com/repository/apache-snapshots</url>

    </mirror>

    <mirror>

     <id>aliyunmaven</id>

     <mirrorOf>*</mirrorOf>

     <name>阿里云spring仓库</name>

     <url>https://maven.aliyun.com/repository/spring</url>

    </mirror>

    <mirror>

     <id>aliyunmaven</id>

     <mirrorOf>*</mirrorOf>

     <name>阿里云spring插件仓库</name>

     <url>https://maven.aliyun.com/repository/spring-plugin</url>

    </mirror>

    </mirrors>

 

    <profiles>

        <profile>

            <repositories>

                <repository>

                    <id>nexus</id>

                    <name>local private nexus</name>

                    <url>http://maven.aliyun.com/nexus/content/groups/public/</url>

                    <releases>

                        <enabled>true</enabled>

                    </releases>

                    <snapshots>

                        <enabled>false</enabled>

                    </snapshots>

                </repository>

            </repositories>

            <pluginRepositories>

                <pluginRepository>

                    <id>nexus</id>

                    <name>local private nexus</name>

                    <url>http://maven.aliyun.com/nexus/content/groups/public/</url>

                    <releases>

                        <enabled>true</enabled>

                    </releases>

                    <snapshots>

                        <enabled>true</enabled>

                    </snapshots>

                </pluginRepository>

            </pluginRepositories>

        </profile>

    </profiles>

</settings>

 

标签:xml,repository,nexus,aliyunmaven,maven,aliyun,com
来源: https://www.cnblogs.com/lljboke/p/16148746.html

专注分享技术,共同学习,共同进步。侵权联系[admin#icode9.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有