ivy教程(6)-项目依赖
2009-10-08 00:00:00 来源:WEB开发网<ivy-module version="1.0">
<info organisation="org.apache" module="depender"/>
<dependencies>
<dependency name="dependee" rev="latest.integration" />
</dependencies>
</ivy-module>
2) 设置
ivy设置在settings目录下,包含两个文件:
* ivysettings.properties: 属性文件
* ivysettings.xml: 包含设置的文件
让我们看一下ivysettings.xml文件:
<ivysettings>
<properties file="${ivy.settings.dir}/ivysettings.properties"/>
<settings defaultCache="${ivy.settings.dir}/ivy-cache" defaultResolver="libraries"/>
<resolvers>
<filesystem name="projects">
<artifact pattern="${repository.dir}/[artifact]-[revision].[ext]" />
<ivy pattern="${repository.dir}/[module]-[revision].xml" />
</filesystem>
<ibiblio name="libraries" m2compatible="true" usepoms="false" />
</resolvers>
<modules>
<module organisation="org.apache" name="dependee" resolver="projects"/>
</modules>
</ivysettings>
文件包含四个主要标签:properties, settings, resolvers 和 modules.
更多精彩
赞助商链接