How does Apache Ivy resolve the variables in artifact patterns provided in the ivysettings.xml file?

浪子不回头ぞ 提交于 2019-12-05 23:19:03

Ivy first resolves the <ivy pattern... />, with the organization, module, and revision given, and with the [artifact] hardcoded as "ivy" and [ext] hardcoded as "xml". This yields a URL, in this case:

http://repository.springsource.com/ivy/bundles/external/org.junit/com.springsource.org.junit/4.4.0/ivy-4.4.0.xml

This is the ivy configuration file for this module. Among other things, this ivy configuration file contains information about other artifacts, in particular:

<artifact name="com.springsource.org.junit-sources" type="src" ext="jar"/>
<artifact name="license" type="license" ext="txt"/>

These two are then used to complete the <artifact pattern... /> part - to download the license and to download the jar file.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!