栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

如何为Maven设置Archiva内部+快照存储库?

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

如何为Maven设置Archiva内部+快照存储库?

经过反复试验,以下配置对我有用。在这里,我使用了默认的archiva配置-

internal
保存发行版,并且
snapshots
仅保存内部快照。

从本质上讲,与关系不同,我们需要两个单独的

<mirror>
<repository>
声明-
一个用于普通工件,另一个用于快照工件。

<mirrors>    <mirror>        <id>archiva</id>        <mirrorOf>*</mirrorOf>        <url>http://localhost:8080/archiva/repository/internal</url>    </mirror>    <mirror>        <id>snapshots</id>        <mirrorOf>snapshots</mirrorOf>        <url>http://localhost:8080/archiva/repository/snapshots</url>    </mirror></mirrors><profiles>    <profile>        <activation> <activeByDefault>true</activeByDefault>        </activation>        <repositories> <repository>   <id>internal</id>   <name>Archiva Managed Internal Repository</name>   <url>http://localhost:8080/archiva/repository/internal/</url>   <releases>     <enabled>true</enabled>   </releases>   <snapshots>     <enabled>false</enabled>   </snapshots> </repository> <repository>   <id>snapshots</id>   <name>Archiva Managed Internal Repository</name>   <url>http://localhost:8080/archiva/repository/snapshots/</url>   <releases>     <enabled>false</enabled>   </releases>   <snapshots>     <enabled>true</enabled>   </snapshots> </repository>        </repositories>    </profile></profiles>


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/571018.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号