maven的配置文件settings.xml

配置文件



<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:\repo\maven_repository\xp_repolocalRepository>


    <pluginGroups>
    pluginGroups>

    <proxies>
    proxies>

    <servers>
    servers>

    <mirrors>
        <mirror>
            <id>aliyunmavenid>
            <mirrorOf>centralmirrorOf>
            <name>阿里云公共仓库name>
            <url>https://maven.aliyun.com/repository/centralurl>
        mirror>
        <mirror>
            <id>repo1id>
            <mirrorOf>centralmirrorOf>
            <name>central reponame>
            <url>http://repo1.maven.org/maven2/url>
        mirror>
        <mirror>
            <id>aliyunmavenid>
            <mirrorOf>apache snapshotsmirrorOf>
            <name>阿里云阿帕奇仓库name>
            <url>https://maven.aliyun.com/repository/apache-snapshotsurl>
        mirror>
    mirrors>

    <profiles>


        <profile>
            <repositories>
                <repository>
                    <id>aliyunmavenid>
                    <name>aliyunmavenname>
                    <url>https://maven.aliyun.com/repository/publicurl>
                    <layout>defaultlayout>
                    <releases>
                        <enabled>trueenabled>
                    releases>
                    <snapshots>
                        <enabled>trueenabled>
                    snapshots>
                repository>
                <repository>
                    <id>MavenCentralid>
                    <url>http://repo1.maven.org/maven2/url>
                repository>
                <repository>
                    <id>aliyunmavenApacheid>
                    <url>https://maven.aliyun.com/repository/apache-snapshotsurl>
                repository>
            repositories>
        profile>
    profiles>
    
settings>

你可能感兴趣的:(maven,xml,java)