Ivy files describe the dependencies of a Java library or application, something they term a module.
Every module or child project in a big application has its own ivy.xml file. This file lists what configurations
the module has, such as compile, test, standalone, or embedded.
Each configuration lists the artifacts it depends on and the artifacts it generates.
The dependencies can be used to set up the classpath for part of the project or to compile files for
redistribution.
The generated artifacts can be published to a repository, including the local file system. Other projects can declare a dependency on the published artifacts, listing the name of the project, the module, and the version required.
They can also declare the configurations of a module on which they want to depend.
A module not only exports its own artifacts, but it can also export those artifacts on which it depends.
Our first ivy.xml file
The first action is to create the ivy.xml file for diary/core, our core diary library.
Listing 11.1 The ivy.xml file for the diary-core module
<ivy-module version="1.4">
<info organisation="org.antbook" module="diary-core" />
<configurations defaultconfmapping="default">
<conf name="compile" visibility="private"/>
<conf name="test" extends="compile" visibility="private"/>
<conf name="master" />
<conf name="runtime" extends="compile"/>
<conf name="default" extends="master,runtime"/>
</configurations>
<publications>
<artifact conf="master"/>
</publications>
<dependencies>
<dependency org="log4j" name="log4j" rev="1.2.13"
conf="compile->default;runtime->default"/>
<dependency org="junit" name="junit" rev="3.8.2"
conf="test->default"/>
</dependencies>
</ivy-module>
相关推荐
erlang入门电子书 erlang编程 Introducing Erlang,作者Simon.St.Laurent
Introducing Windows® 7 for Developers you’ll examine new Windows 7 capabilities and get a head start exploiting them to build better user experiences and applications. Topics include multi-touch ...
Introducing Regular Expressions pdf 高清 有目錄
introducing social networks
Introducing Visual C# 2010.pdf
Microsoft.Press.Introducing.Windows.7.for.Developers
Introducing Microsoft Flow pdf Use Microsoft Flow in your business to improve productivity through automation with this step-by-step introductory text from a Microsoft Flow expert. You’ll see the ...
《Introducing Visual C# 2010》Source Code Delivery
introducing-java-8.pdf 不可多得的好书 你值得拥有
Introducing Bluetooth LE Audio book form Bluetooth SIG
Introducing MySQL Shell
Introducing.Go.2016.1.pdf
Introducing Power BI
Introducing Linux Distros teaches you the pros and the cons of the most frequently used distros in order to find the one that is right for you. You will explore each distro step by step, so that you ...
Introducing.Python英文文字版,内含epub和pdf
Introducing Visual C# 2010 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或...
Introducing the MySQL 8 Document Store.pdf
Introducing Elixir 英文版.
Introducing Bootstrap 4
Introducing Bootstrap 4 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或...