`
zsjg13
  • 浏览: 142422 次
  • 性别: Icon_minigender_1
  • 来自: 安徽
社区版块
存档分类
最新评论

Introducing Ivy

    博客分类:
  • ivy
阅读更多

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>

分享到:
评论

相关推荐

    Introducing Windows 7 for Developers (pdf)

    为了帮助开发者更好地理解并利用这一新平台的功能,《Introducing Windows 7 for Developers》一书应运而生。本书由Yochay Kiriaty、Laurence Moroney、Sasha Goldshtein 和 Alon Fliess 共同编写,并由Microsoft ...

    erlang编程 Introducing Erlang

    **Erlang编程:Introducing Erlang** Erlang是一种函数式编程语言,由爱立信在1986年开发,主要用于构建高可用性、容错性和并发性的分布式系统。"Introducing Erlang"是Simon St. Laurent撰写的一本入门级教程,...

    Introducing.Python英文文字版

    《Introducing Python》是一本广泛认可的Python编程入门书籍,英文版提供了全面而深入的Python语言教程。这本书适合初学者,也对有一定经验的程序员有很高的参考价值。它覆盖了Python的基础语法、核心概念以及一些...

    introducing-java-8.pdf

    Java 8 是Java编程语言的一个重要更新版本,由Raoul-Gabriel Urma所著的《Introducing Java 8》是一本介绍Java 8新特性的指南书。本书提供了Java 8中新增的Lambda表达式和流(Streams)的快速入门,旨在帮助程序员...

    Introducing Visual C# 2010随书代码

    《Introducing Visual C# 2010》是面向初学者和中级程序员的一本经典教程,旨在引导读者深入了解Visual C# 2010编程语言及其相关开发工具。随书附带的源代码是为了帮助读者更好地理解书中的示例和实践项目,以便于将...

    Introducing Visual C# 2010

    《Introducing Visual C# 2010》是关于C#编程语言的一份详细指南,主要针对Visual Studio 2010版本。这本书深入浅出地介绍了C#的基础概念、语法以及在实际开发中的应用。C#是微软公司推出的面向对象的编程语言,广泛...

    Introducing Bootstrap 4 无水印pdf

    Introducing Bootstrap 4 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或...

    Introducing Erlang Getting Started in Functional Programming(2nd) epub

    Introducing Erlang Getting Started in Functional Programming(2nd) 英文epub 第2版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    Introducing Regular Expressions pdf

    从给出的文件内容来看,我们正在讨论一本关于正则表达式的电子书——《Introducing Regular Expressions》,该书由Michael Fitzgerald撰写,2012年由O'Reilly Media出版。 正则表达式的知识可以分为以下几个部分来...

    introducing_eventstorming.pdf

    这本书《Introducing EventStorming》由Alberto Brandolini撰写,介绍了事件风暴技术的具体应用方法和案例,适合于对领域驱动设计(DDD)和大型系统建模感兴趣的读者。 事件风暴工作坊通常包括以下几个阶段: 1. ...

    Introducing Starling Building GPU Accelerated Applications epub

    Introducing Starling Building GPU Accelerated Applications 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    Introducing.JavaFX.8.Programming.0071842551.epub

    Introducing JavaFX 8 Programming provides a fast-paced, practical introduction to JavaFX, Java’s next-generation GUI programming framework. In this easy-to-read guide, best-selling author Herb ...

    Introducing Net 4.0 With Visual Studio 2010.pdf

    本书《Introducing .NET 4.0 With Visual Studio 2010》由Alex Mackey编写,旨在为读者提供一个快速了解.NET 4.0及其相关技术的途径。它不仅涵盖了.NET 4.0的核心功能,还介绍了Visual Studio 2010在开发中的应用。...

Global site tag (gtag.js) - Google Analytics