加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

settings.xml模板

发布时间:2020-12-16 06:09:20 所属栏目:百科 来源:网络整理
导读:settings !-- localRepository | The path to the local repository maven will use to store artifacts. | | Default: ~/.m2/repository -- localRepository D:/.m2/repository / localRepository pluginGroups / pluginGroups proxies / proxies !-- serve
<settings>
  <!-- localRepository | The path to the local repository maven will use to store artifacts. | | Default: ~/.m2/repository -->
  <localRepository>D:/.m2/repository</localRepository>




    <pluginGroups> 

    </pluginGroups> 

    <proxies> 

    </proxies> 

    <!-- servers | This is a list of authentication profiles,keyed by the server-id used within the system. | Authentication profiles can be used whenever maven must make a connection to a remote server. |--> 
    <servers> 

        <server> 
            <id>snapshots</id> 
            <username>snapshotsAdmin</username> 
            <password>123456</password> 
        </server> 

    </servers> 


    <mirrors> 

        <mirror> 
            <id>tbmirror</id> 
            <mirrorOf>central</mirrorOf> 
            <name>alibaba mirror</name> 
            <url>http://mvnrepo.xxxxxx.com/mvn/repository</url>

        </mirror> 
        <mirror> 
            <id>tbmirror-snapshots</id> 
            <mirrorOf>snapshots</mirrorOf> 
            <name>alibaba mirror snapshots</name> 
            <url>http://mvnrepo.xxxxxx.com/mvn/repository</url> 
        </mirror> 
    </mirrors> 


    <profiles> 

        <profile> 
            <id>nexus</id> 
            <repositories> 
                <repository> 
                    <id>central</id> 
                    <url>http://mvnrepo.xxxxxx.com/mvn/repository</url> 
                    <releases> 
                        <enabled>true</enabled> 
                    </releases> 
                    <snapshots> 
                        <enabled>false</enabled> 
                    </snapshots> 
                </repository> 
                <repository> 
                    <id>snapshots</id> 
                    <url>http://mvnrepo.xxxxxx.com/mvn/repository</url> 
                    <releases> 
                        <enabled>false</enabled> 
                    </releases> 
                    <snapshots> 
                        <enabled>true</enabled> 
                    </snapshots> 
                </repository> 
            </repositories> 
            <pluginRepositories> 
                <pluginRepository> 
                    <id>central</id> 
                    <url>http://mvnrepo.taobao.ali.com/mvn/repository</url> 
                    <releases> 
                        <enabled>true</enabled> 
                    </releases> 
                    <snapshots> 
                        <enabled>false</enabled> 
                    </snapshots> 
                </pluginRepository> 
                <pluginRepository> 
                    <id>snapshots</id> 
                    <url>http://mvnrepo.xxxxxx.com/mvn/repository</url> 
                    <releases> 
                        <enabled>false</enabled> 
                    </releases> 
                    <snapshots> 
                        <enabled>true</enabled> 
                    </snapshots> 
                </pluginRepository> 
            </pluginRepositories> 
        </profile> 

    </profiles> 

    <!-- activeProfiles | List of profiles that are active for all builds. | --> 
    <activeProfiles> 
        <activeProfile>nexus</activeProfile> 
    </activeProfiles> 

</settings>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读