这个常春藤changingPattern/SNAPSHOT配置有什么问题? [英] What's wrong with this Ivy changingPattern / SNAPSHOT configuration?

查看:78
本文介绍了这个常春藤changingPattern/SNAPSHOT配置有什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新快照依赖项时,我无法让Ivy更新缓存.解析器(具有以下设置:

I can't get Ivy to update cache when snapshot dependencies are updated. The resolver (to has the following settings:

<url name="xxx" m2compatible="false" 
     checkmodified="true" changingMatcher="regexp" 
     changingPattern=".*-SNAPSHOT.*">

人工制品的文件名示例是:

An example artifact filename (in Artifactory) is:

my-jar-1.999-SNAPSHOT.jar

详细的解决蚁人日志包括:

A detailed Ant log of resolve includes:

[NOT REQUIRED] com.myorg#my-module;1.999-SNAPSHOT!my-jar.jar

工件上没有POM.

解析器位于链解析器的下面;它们都具有所有相关的属性集.我已阅读 https://issues.apache.org/jira/browse/IVY-938 https://issues.apache.org/jira/browse/IVY-1221 (包括所有评论)和AFAICT(可能不正确!),都没有相关的解决方法.

The resolver is underneath a chain resolver; they both have all the relevant attributes set. I have read https://issues.apache.org/jira/browse/IVY-938 and https://issues.apache.org/jira/browse/IVY-1221, including all the comments, and AFAICT (perhaps incorrectly!) none of the workarounds are relevant.

我应该放弃快照,而只使用带有"integration.latest"动态版本依赖项的显式版本吗?我担心当我们针对多个主要版本进行集成构建时,这可能最终会失败.那时,我们需要将主要版本拆分到单独的存储库中,或者将主要内部版本号放入工件名称中,或者同样笨拙,以使"integration.latest"正常工作.

Should I give up on snapshots and just use explicit versions with "integration.latest" dynamically versioned dependencies? I fear this may end up failing when we have integration builds happening for multiple major versions. At that point we'll need to split the major versions out into separate repositories, or put the major build number in the artifact name, or something equally clunky, just to make "integration.latest" work.

推荐答案

经过几天的奋斗...

After days of struggle...

问题在于

checkmodified="true" changingMatcher="regexp"

要在< resolver>上工作,它必须位于层次结构行中的每个解析器上-所有父级< chain>解析器和< url>,< local>,或< ibiblio>解析器位于底部.

to work on a <resolver>, it has to be on every resolver in the hierarchy line - all parent <chain> resolvers and the <url>, <local>, or <ibiblio> resolver at the bottom.

这篇关于这个常春藤changingPattern/SNAPSHOT配置有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆