wcw53147 2016-09-22 02:19 采纳率: 20%
浏览 2271

MAVEN如何部署至snapshots仓库

现在是能部署至nexus的releases仓库,但是不能部署到snapshots仓库
配置:
pom.xml:

<distributionManagement>
        <repository>
            <id>nexus-releases</id>
            <name>nexus releases</name>
            <url>http://127.0.0.1:8081/nexus/content/repositories/releases/</url>
        </repository>
        <snapshotRepository>
            <id>nexus-snapshots</id>
            <name>nexus snapshots</name>
            <url>http://127.0.0.1:8081/nexus/content/repositories/snapshots/</url>
        </snapshotRepository>
    </distributionManagement> 

settings.xml:

<repository>
                        <id>public</id>
                        <name>public repositorie.</name>
                        <url>http://127.0.0.1:8081/nexus/content/groups/public/</url>
                        <releases><enabled>true</enabled></releases>
                        <snapshots><enabled>true</enabled></snapshots>
</repository> 

仓库认证也打开了.现在使用mvc clean deploy命令部署没报错,但是只会正常部署到release仓库,snapshots一直是空的
请各位大神指教,多谢!

  • 写回答

2条回答 默认 最新

  • 太玄道长 2019-06-15 10:29
    关注

    版本号加上-SNAPSHOT

    评论

报告相同问题?

悬赏问题

  • ¥50 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?