首页 文章

nexus maven artifacts从存储库中消失

提问于
浏览
1

我的一些nexus maven工件在1-5天后从存储库中消失 . 还不能重现 .

怎么会发生这种情况?

Maven settings.xml:

<settings>
<mirrors>
    <mirror>
        <id>nexus</id>
        <mirrorOf>*,!codehaus.snapshots,!snapshots</mirrorOf>
        <url>http://192.168.2.252:8080/nexus/content/groups/public</url>
    </mirror>
    <mirror>
        <id>nexus-snapshots</id>
        <mirrorOf>codehaus.snapshots,snapshots</mirrorOf>
        <url>http://192.168.2.252:8080/nexus/content/groups/public-snapshots</url>
    </mirror>
</mirrors>
<profiles>
    <profile>
        <id>nexus</id>
        <!--Enable snapshots for the built in central repo to direct -->
        <!--all requests to nexus via the mirror -->
        <repositories>
            <repository>
                <id>central</id>
                <url>http://central</url>
                <releases>
                    <enabled>true</enabled>
                    <updatePolicy>always</updatePolicy>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                    <updatePolicy>always</updatePolicy>
                </snapshots>
            </repository>
        </repositories>
        <pluginRepositories>
            <pluginRepository>
                <id>central</id>
                <url>http://central</url>
                <releases>
                    <enabled>true</enabled>
                    <updatePolicy>always</updatePolicy>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                    <updatePolicy>always</updatePolicy>
                </snapshots>
            </pluginRepository>
        </pluginRepositories>
    </profile>
</profiles>
<activeProfiles>
    <!--make the profile active all the time -->
    <activeProfile>nexus</activeProfile>
</activeProfiles>

从公共和公共快照组下载的工件 .

1 回答

  • 2

    公共存储库中的快照版本很可能被清除 . 你无法控制这一点 .

    快照修订版本是临时性的 .

相关问题