0
在的ivy.xml常春藤解决问题REV = “1.0 +。”
<dependency org="abc" name="validation" rev="1.0.+" changing="true" force="false" conf="build->default"/>
常春藤设置:
<chain name="hub-default-chain" returnFirst="true">
<resolver ref="view-local"/>
<resolver ref="hub-releases"/>
</chain>
它从轮毂的版本1.0.25解决,但不能解决1.0。 22如果在hub-release中没有任何内容,那么从视图 - 本地22。我不明白为什么它解决在一个存储库,但不在其他。请帮助。
错误:
module not found: abc#validation;1.0.+
[ivy:cachepath] ==== view-local: tried
[ivy:cachepath] completepath\view- local\abc\validation\ivy.xml
[ivy:cachepath] [[email protected]]
[ivy:cachepath] -- artifact abc#validation;1.0.+!validation.jar:
PS:视图本地是一个文件系统解析器和轮毂的版本是一个URL解析器。
这是我的文件系统reolver
<filesystem name="view-local"
cache="view-local-cache"
validate="true"
local="${ivy.view-local.default.local}"
checksums=""
transactional="false"
checkmodified="true"
changingPattern="view-local">
<ivy pattern="${ivy.view-local.default.repository.root}/${ivy.view-local.default.ivy.pattern}" />
<artifact pattern="${ivy.view-local.default.repository.root}/${ivy.view-local.default.artifact.pattern}" />
</filesystem>
我已经明确地设置了'returnFirst',因为我希望回购以这种方式行事,并且我也试着手动清理缓存以删除任何条目。不明白我做错了什么。我怀疑这是因为某些问题在我的解析器。 – stillLearning
我发布了我的视图 - 本地解析器。请查看是否有任何问题 – stillLearning