• maven settings


    常用maven私服

    settings.xml

    模板一

    <?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>F:maven_repository</localRepository>
        
        <pluginGroups>
        </pluginGroups>
        
        <servers>
            <server>
                <id>oss</id>
                <username>huangck</username>
                <password>LLhtJGVDmjxw9X!</password>
            </server>
            <server>
                <id>ossrh</id>
                <username>huangck</username>
                <password>LLhtJGVDmjxw9X!</password>
            </server>
            <server>
                <id>nexus</id>
                <username>jenkins</username>
                <password>9ol.)OKM</password>
            </server>
        </servers>
        
        <mirrors>
            <!-- 国内阿里远程maven仓库,加速访问,代理central仓库 -->
            <mirror>
                <id>alimaven</id>
                <name>aliyun</name>
                <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
                <mirrorOf>central</mirrorOf>
            </mirror>
        </mirrors>
        
        <profiles>
            <activeProfiles>
                <activeProfile>aliyun</activeProfile>
            </activeProfiles>
            <profile>
                <id>aliyun</id>
                <repositories>
                    <repository>
                        <id>maven-ali</id>
                        <name>Aliyun</name>
                        <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
                        <releases>
                            <enabled>true</enabled>
                        </releases>
                        <snapshots>
                            <enabled>true</enabled>
                            <updatePolicy>always</updatePolicy>
                            <checksumPolicy>fail</checksumPolicy>
                        </snapshots>
                    </repository>
                </repositories>
                <pluginRepositories>
                    <pluginRepository>
                        <id>maven-ali</id>
                        <name>Aliyun</name>
                        <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
                        <releases>
                            <enabled>true</enabled>
                        </releases>
                        <snapshots>
                            <enabled>true</enabled>
                        </snapshots>
                    </pluginRepository>
                </pluginRepositories>
            </profile>
            
            <profile>
                <id>central</id>
                <repositories>
                    <repository>
                        <id>central</id>
                        <name>Central</name>
                        <url>http://repo1.maven.org/maven2/</url>
                        <releases>
                            <enabled>true</enabled>
                        </releases>
                        <snapshots>
                            <enabled>true</enabled>
                            <updatePolicy>always</updatePolicy>
                            <checksumPolicy>fail</checksumPolicy>
                        </snapshots>
                    </repository>
                </repositories>
                <pluginRepositories>
                    <pluginRepository>
                        <id>central</id>
                        <name>Central</name>
                        <url>http://repo1.maven.org/maven2/</url>
                        <releases>
                            <enabled>true</enabled>
                        </releases>
                        <snapshots>
                            <enabled>true</enabled>
                        </snapshots>
                    </pluginRepository>
                </pluginRepositories>
            </profile>
            
            <profile>
                <id>custom</id>
                <repositories>
                    <repository>
                        <id>custom</id>
                        <name>Custom</name>
                        <url>http://registry.caijj.net/repository/maven-public</url>
                        <releases>
                            <enabled>true</enabled>
                        </releases>
                        <snapshots>
                            <enabled>true</enabled>
                            <updatePolicy>always</updatePolicy>
                            <checksumPolicy>fail</checksumPolicy>
                        </snapshots>
                    </repository>
                </repositories>
                <pluginRepositories>
                    <pluginRepository>
                        <id>custom</id>
                        <name>Custom</name>
                        <url>http://registry.caijj.net/repository/maven-public</url>
                        <releases>
                            <enabled>true</enabled>
                        </releases>
                        <snapshots>
                            <enabled>true</enabled>
                        </snapshots>
                    </pluginRepository>
                </pluginRepositories>
            </profile>
        </profiles>
    
    </settings>
    
    
    kancy
  • 相关阅读:
    c#常用简化语句
    SQL语句使用中的笔录
    UpdateProgress 实现加载效果
    maven的下载安装,配置本地仓库
    IntelliJ IDEA启动Tomcat后,无法访问Tomcat主页
    SSM框架实现分页
    mybatis-generator-xxxx 使用方法
    Mybatis错误:Parameter 'XXX' not found. Available parameters are [1, 0, param1, param2]
    mybatis高级映射(一对一,一对多)
    SSM整合---实现全部用户查询
  • 原文地址:https://www.cnblogs.com/kancy/p/maven_settings.html
Copyright © 2020-2023  润新知