1

私のネクサス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>

パブリックおよびパブリックスナップショットグループからダウンロードされたアーティファクト。

4

1 に答える 1

2

パブリック リポジトリのスナップショット リリースは、パージされる可能性が最も高いです。これを制御することはできません。

スナップショットのリビジョンは、本質的に一時的であるように設計されています。

于 2012-11-02T13:11:33.010 に答える