Maven安装配置相关

liuqiang 2021年05月20日 16次浏览

阿里云setting.xml

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


<settings>
    <mirrors>
        <mirror>
            <id>maven-public</id>
            <mirrorOf>aliyun,central,spring,jboss,thirdparty</mirrorOf>
            <url>https://maven.aliyun.com/repository/public</url>
        </mirror>
    </mirrors>
    <profiles>
        <profile>
            <id>nexus-profile</id>
            <repositories>
                <repository>
                    <id>maven-releases</id>
                    <name>Nexus Releases Repository</name>
                    <url>https://maven.aliyun.com/repository/releases</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                </repository>
                <repository>
                    <id>maven-snapshots</id>
                    <name>Nexus Releases Repository</name>
                    <url>https://maven.aliyun.com/repository/snapshots</url>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <id>maven-releases</id>
                    <name>Nexus Releases Repository</name>
                    <url>https://maven.aliyun.com/repository/releases</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </pluginRepository>
                <pluginRepository>
                    <id>maven-snapshots</id>
                    <name>Nexus Releases Repository</name>
                    <url>https://maven.aliyun.com/repository/snapshots</url>
                </pluginRepository>
            </pluginRepositories>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>nexus-profile</activeProfile>
    </activeProfiles>
    
	<servers>
        <server>
            <id>maven-releases</id>
            <username>wujinjuan</username>
            <password>wujinjuan123</password>
        </server>
        <server>
            <id>maven-snapshots</id>
            <username>wujinjuan</username>
            <password>wujinjuan123</password>
        </server>
        <server>
            <id>maven-public</id>
            <username>wujinjuan</username>
            <password>wujinjuan123</password>
        </server>
	
    </servers>
	
</settings>