请问maven下载nexus中的snapshots版本怎么配置?

我的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>E:/AppData/maven_repo</localRepository>
    <pluginGroups>
        <pluginGroup>org.codehaus.cargo</pluginGroup>
    </pluginGroups>
    <servers>
        <server>
            <id>nexus</id>
            <username>admin</username>
            <password>admin123</password>
        </server>

    </servers>

    <mirrors>
        <mirror>
            <id>nexus</id>
            <mirrorOf>*</mirrorOf>
            <url>http://192.168.0.240:8081/repository/maven-public/</url>
        </mirror>
    </mirrors>

    <profiles>
        <profile>
            <id>roncoo-profile</id>
            <repositories>
                <repository>
                    <id>nexus</id>
                    <url>http://192.168.0.240:8081/repository/maven-public/</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
            </repositories>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>roncoo-profile</activeProfile>
    </activeProfiles>
</settings>

nexus仓库
image.png
image.png

下载失败
image.png

阅读 565
评论
    1 个回答

    你是要干嘛?

      撰写回答

      登录后参与交流、获取后续更新提醒