maven多仓库私库模板配置

文章目录



<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
    
    <localRepository>E:\apache-maven-3.8.5\repositorylocalRepository>

    
    <servers>
        <server>
            <id>nexus1id>
            <username>adminusername>
            <password>passwordpassword>
        server>
    servers>

    
     <mirrors>
        <mirror>
            <id>aliyunmavenid>
            <mirrorOf>*mirrorOf>
            <name>阿里云公共仓库name>
            <url>https://maven.aliyun.com/repository/publicurl>
        mirror>
    mirrors>
    
    <profiles>
        <profile>
            <id>jdk8id>

            <activation>
                <activeByDefault>trueactiveByDefault>
                <jdk>1.8jdk>
            activation>
            <properties>
                <maven.compiler.source>1.8maven.compiler.source>
                <maven.compiler.target>1.8maven.compiler.target>
                <maven.compiler.compilerVersion>1.8maven.compiler.compilerVersion>
            properties>
        profile>
        <profile>
            <id>jdk11id>

            <activation>
                <activeByDefault>trueactiveByDefault>
                <jdk>11jdk>
            activation>
            <properties>
                <maven.compiler.source>11maven.compiler.source>
                <maven.compiler.target>11maven.compiler.target>
                <maven.compiler.compilerVersion>11maven.compiler.compilerVersion>
            properties>
        profile>
        <profile>
            <id>aliyunid>
            <repositories>
                <repository>
                    <id>aliyunid>
                    <url>https://maven.aliyun.com/repository/publicurl>
                    <releases>
                        <enabled>trueenabled>
                    releases>
                    <snapshots>
                        <enabled>trueenabled>
                        <updatePolicy>alwaysupdatePolicy>
                    snapshots>
                repository>
            repositories>
        profile>

        <profile>
            <id>huaweicloudid>
            <repositories>
                <repository>
                    <id>huaweicloudid>
                    <url>https://repo.huaweicloud.com/repository/maven/url>
                    <releases>
                        <enabled>trueenabled>
                    releases>
                    <snapshots>
                        <enabled>trueenabled>
                        <updatePolicy>alwaysupdatePolicy>
                    snapshots>
                repository>
            repositories>
        profile>

        <profile>
            <id>springid>
            <repositories>
                <repository>
                    <id>springid>
                    <url>https://maven.aliyun.com/repository/springurl>
                    <releases>
                        <enabled>trueenabled>
                    releases>
                    <snapshots>
                        <enabled>trueenabled>
                        <updatePolicy>alwaysupdatePolicy>
                    snapshots>
                repository>
            repositories>
        profile>

        <profile>
            <id>spring-pluginid>
            <repositories>
                <repository>
                    <id>spring-pluginid>
                    <url>https://maven.aliyun.com/repository/spring-pluginurl>
                    <releases>
                        <enabled>trueenabled>
                    releases>
                    <snapshots>
                        <enabled>trueenabled>
                        <updatePolicy>alwaysupdatePolicy>
                    snapshots>
                repository>
            repositories>
        profile>

        <profile>
            <id>googleid>
            <repositories>
                <repository>
                    <id>googleid>
                    <url>https://maven.aliyun.com/repository/googleurl>
                    <releases>
                        <enabled>trueenabled>
                    releases>
                    <snapshots>
                        <enabled>trueenabled>
                        <updatePolicy>alwaysupdatePolicy>
                    snapshots>
                repository>
            repositories>
        profile>

        <profile>
            <id>apache-snapshotsid>
            <repositories>
                <repository>
                    <id>apache-snapshotsid>
                    <url>https://maven.aliyun.com/repository/apache-snapshotsurl>
                    <releases>
                        <enabled>trueenabled>
                    releases>
                    <snapshots>
                        <enabled>trueenabled>
                        <updatePolicy>alwaysupdatePolicy>
                    snapshots>
                repository>
            repositories>
        profile>

        <profile>
            <id>gradle-pluginid>
            <repositories>
                <repository>
                    <id>gradle-pluginid>
                    <url>https://maven.aliyun.com/repository/gradle-pluginurl>
                    <releases>
                        <enabled>trueenabled>
                    releases>
                    <snapshots>
                        <enabled>trueenabled>
                        <updatePolicy>alwaysupdatePolicy>
                    snapshots>
                repository>
            repositories>
        profile>

        <profile>
            <id>grails-coreid>
            <repositories>
                <repository>
                    <id>grails-coreid>
                    <url>https://maven.aliyun.com/repository/grails-coreurl>
                    <releases>
                        <enabled>trueenabled>
                    releases>
                    <snapshots>
                        <enabled>trueenabled>
                        <updatePolicy>alwaysupdatePolicy>
                    snapshots>
                repository>
            repositories>
        profile>

        <profile>
            <id>spring-milestoneid>
            <repositories>
                <repository>
                    <id>spring-milestoneid>
                    <url>http://repo.spring.io/milestoneurl>
                    <releases>
                        <enabled>trueenabled>
                    releases>
                    <snapshots>
                        <enabled>trueenabled>
                        <updatePolicy>alwaysupdatePolicy>
                    snapshots>
                repository>
            repositories>
        profile>

        <profile>
            <id>spring-snapshotid>
            <repositories>
                <repository>
                    <id>spring-snapshotid>
                    <url>http://repo.spring.io/snapshoturl>
                    <releases>
                        <enabled>trueenabled>
                    releases>
                    <snapshots>
                        <enabled>trueenabled>
                        <updatePolicy>alwaysupdatePolicy>
                    snapshots>
                repository>
            repositories>
        profile>

        <profile>
            <id>maven.net.cnid>
            <repositories>
                <repository>
                    <id>maven.net.cnid>
                    <url>http://maven.net.cn/content/groups/public/url>
                    <releases>
                        <enabled>trueenabled>
                    releases>
                    <snapshots>
                        <enabled>trueenabled>
                        <updatePolicy>alwaysupdatePolicy>
                    snapshots>
                repository>
            repositories>
        profile>

        <profile>
            <id>maven2-repo1id>
            <repositories>
                <repository>
                    <id>maven2-repo1id>
                    <url>http://repo1.maven.org/maven2url>
                    <releases>
                        <enabled>trueenabled>
                    releases>
                    <snapshots>
                        <enabled>trueenabled>
                        <updatePolicy>alwaysupdatePolicy>
                    snapshots>
                repository>
            repositories>
        profile>

        <profile>
            <id>maven2-repo2id>
            <repositories>
                <repository>
                    <id>maven2-repo2id>
                    <url>http://repo2.maven.org/maven2url>
                    <releases>
                        <enabled>trueenabled>
                    releases>
                    <snapshots>
                        <enabled>trueenabled>
                        <updatePolicy>alwaysupdatePolicy>
                    snapshots>
                repository>
            repositories>
        profile>

        <profile>
            <id>blade-publicid>
            <repositories>
                <repository>
                    <id>blade-publicid>
                    <url>http://nexus.javablade.com/repository/maven-public/url>
                    <releases>
                        <enabled>trueenabled>
                    releases>
                    <snapshots>
                        <enabled>trueenabled>
                        <updatePolicy>alwaysupdatePolicy>
                    snapshots>
                repository>
            repositories>
        profile>
    profiles>

    
    <activeProfiles>
        <activeProfile>aliyunactiveProfile>
        <activeProfile>huaweicloudactiveProfile>
        <activeProfile>springactiveProfile>
        <activeProfile>spring-pluginactiveProfile>
        <activeProfile>googleactiveProfile>
        <activeProfile>apache-snapshotsactiveProfile>
        <activeProfile>maven.net.cnactiveProfile>
        <activeProfile>maven2-repo1activeProfile>
        <activeProfile>maven2-repo2activeProfile>
        <activeProfile>blade-publicactiveProfile>
        <activeProfile>spring-milestoneactiveProfile>
        <activeProfile>spring-snapshotactiveProfile>
        <activeProfile>gradle-pluginactiveProfile>
        <activeProfile>grails-coreactiveProfile>
    activeProfiles>
settings>

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