我有以下ant和常春藤文件来设置我的项目.我希望ivy解析文件D:/workspace/lib/apache/log4j/1.2.16/ivy.xml以检索log4j.jar.
但是常春藤解析了这个文件D:/workspace/BuildStudy/ivy.xml.我没有D:/workspace/BuildStudy/ivy.xml file.有没有人知道我的蚂蚁和常春藤设置文件有什么问题.谢谢.
build.xml文件包含:
<project name="BuildStudy" default="main" xmlns:ivy="antlib:org.apache.ivy.ant">
<target name="resolve" description="--> retrieve dependencies with ivy">
<ivy:retrieve/>
</target>
</project>
Run Code Online (Sandbox Code Playgroud)
ivysetting.xml文件包含:
<ivysettings>
<properties file="D:/workspace/BuildStudy/ivysettings-file.properties" />
<caches defaultCacheDir="${cache.dir}" />
<property name="base.dir" value="D:/workspace/lib"/>
<settings defaultResolver="CRMlocal"/>
<resolvers>
<filesystem name="CRMlocal">
<ivy pattern="${base.dir}/[organisation]/[module]/[revision]/ivy.xml"/>
<artifact pattern="${base.dir}/[organisation]/[module]/[revision]/[artifact].[ext]"/>
<artifact pattern="${base.dir}/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/>
</filesystem>
</resolvers>
</ivysettings>
Run Code Online (Sandbox Code Playgroud)
ivysettings-file.properties文件包含:cache.dir = D:/workspace/BuildStudy/.ivy_cache
将以下属性添加到build.xml:
<property name="ivy.dep.file" value="PATH TO ivy.xml" />
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5735 次 |
| 最近记录: |