【发布时间】:2010-12-24 00:28:30
【问题描述】:
我一直在玩基本的Ivy Tutorial,并逐渐扩展到我现在有一个单独的 ivy.xml 定义我的依赖项并在 apache ant 安装中使用 ivy jar 的状态。
我还设法定义了一个共享存储库,以阻止常春藤弹出到外部存储库。这是通过在 resolve 任务中定义属性来完成的。
<target name="resolve" depends="" description="Resolve the dependencies">
<property name="ivy.shared.default.root" value="C:/ivy/localLibsStore" />
<property name="ivy.shared.default.artifact.pattern" value="[module]/[revision]/[type]s/[artifact]-[revision].[ext]" />
<ivy:retrieve/>
</target>
但是我尝试将这些属性移动到单独的 ivysettings.xml 文件中,但没有成功。
所以问题是我的 ivysettings.xml 中应该有什么?
我在下面的最新尝试给出了错误:
未知的解析器为空
找不到...的解析器
<ivysettings>
<property name="ivy.shared.default.root" value="C:/ivy/localLibsStore" />
<property name="ivy.shared.default.artifact.pattern" value="[module]/[revision]/[type]s/[artifact]-[revision].[ext]" />
<resolvers>
<filesystem name="shared">
<ivy pattern="${ivy.shared.default.root}/${ivy.shared.default.ivy.pattern}" />
<artifact pattern="${ivy.shared.default.root}/${ivy.shared.default.artifact.pattern}" />
</filesystem>
</resolvers>
</ivysettings>
【问题讨论】: