【问题标题】:cannot download snapshot from nexus无法从 Nexus 下载快照
【发布时间】:2018-04-27 06:05:26
【问题描述】:

我为 maven 设置了一个 nexus repo,我已经部署了一个快照,但我还是无法获得它。发布版本没问题。

Snapshot in the repo

what I get in my local repo

cannot get the jar

can get the metadata

Maven 设置

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

<profile>
    <id>nexus</id>
    <repositories>
        <repository>
            <id>public</id>
            <name>maven-public</name>
            <url>http://nexus:8081/repository/maven-public/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>           
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>public</id>
            <url>http://nexus:8081/repository/maven-public/</url>
            <releases><enabled>true</enabled></releases>
            <snapshots><enabled>true</enabled></snapshots>
        </pluginRepository>
    </pluginRepositories>
</profile>

【问题讨论】:

    标签: maven maven-3 nexus


    【解决方案1】:

    如果元数据被缓存。尝试使用 mvn -U 更新缓存的本地存储库。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-03-08
      • 2014-03-18
      • 2016-08-03
      • 2011-07-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多