Presentation is loading. Please wait.

Presentation is loading. Please wait.

Managing your dependencies with Xavier Hanin

Similar presentations


Presentation on theme: "Managing your dependencies with Xavier Hanin"— Presentation transcript:

1 Managing your dependencies with Xavier Hanin

2 Managing your dependencies with Ivy - Apache Con EU 2007 Speaker’s qualification Xavier Hanin Creator of Ivy Member of JSR 277 (Java Module System) Expert Group Java developer and consultant since 1999 Independant consultant

3 Managing your dependencies with Ivy - Apache Con EU 2007 Agenda What is Ivy? Why Ivy? A little bit of history First contact Where do those files come from? Modular development with Ivy Ivy’s spirit Q/A

4 Managing your dependencies with Ivy - Apache Con EU 2007 What is Ivy? A tool for managing project dependencies recordingreporting resolvingpublishing Focus on flexibility and configurability Ensure build reproducibility Support large dependencies graph Strong conflict management engine Tight integration with Apache Ant Compatible with Maven 2 repositories

5 Managing your dependencies with Ivy - Apache Con EU 2007 Why Ivy? Don’t reinvent the wheel: reuse Modular systems are easier to develop and maintain More and more complex components Agile methodologies => Manage your dependencies

6 Managing your dependencies with Ivy - Apache Con EU 2007 A little bit of history Created for the internal needs of Jayasoft First open source version (0.5) First release Join Apache Incubator sponsored by Apache Ant alpha-1-incubating 1.4.1

7 Managing your dependencies with Ivy - Apache Con EU 2007 First contact No complex install, bootstrap! install ivy">

8 Managing your dependencies with Ivy - Apache Con EU 2007 First contact Get your first dependency

9 Managing your dependencies with Ivy - Apache Con EU 2007 Demo

10 Managing your dependencies with Ivy - Apache Con EU 2007 First contact Introducing Ivy files because one dependency is not enough because dependencies declaration should not be part of the build.xml because transitive dependencies require module metadata

11 Managing your dependencies with Ivy - Apache Con EU 2007 Ivy files

12 Managing your dependencies with Ivy - Apache Con EU 2007 Resolve dependencies

13 Managing your dependencies with Ivy - Apache Con EU 2007 Understanding your dependencies

14 Managing your dependencies with Ivy - Apache Con EU 2007 Understanding your dependencies

15 Managing your dependencies with Ivy - Apache Con EU 2007 Where do those files come from? Notion of repository stores modules artifacts and metadata very flexible anything can be a repository! possible to split modules across repositories ex: metadata in one place and artifacts in another ex: thirdparty modules on one server and internal on another possible to split versions across repositories example: one repository for integration builds, one for releases, one for archive, …

16 Managing your dependencies with Ivy - Apache Con EU 2007 Where do those files come from? Default settings Use maven 2 public repository Use a shared and local repository Easy to use, but not suitable to all situations Custom settings Define your own repository architecture Simple xml file Clean separation with metadata

17 Managing your dependencies with Ivy - Apache Con EU 2007 Where do those files come from?

18 Managing your dependencies with Ivy - Apache Con EU 2007 Demo

19 Managing your dependencies with Ivy - Apache Con EU 2007 Modular development with Ivy Ivy helps resolve third party dependencies, but it’s even more useful for internal dependencies changing frequently project A project B local repository shared repository

20 Managing your dependencies with Ivy - Apache Con EU 2007 Ivy file

21 Managing your dependencies with Ivy - Apache Con EU 2007 Settings

22 Managing your dependencies with Ivy - Apache Con EU 2007 Demo

23 Managing your dependencies with Ivy - Apache Con EU 2007 Ivy’s spirit: flexibility Adapt to your environment and requirements Many things are configurable and pluggable Large choice of repositories, with very flexible layout Wide set of flexible ant tasks

24 Managing your dependencies with Ivy - Apache Con EU 2007 Ivy’s spirit: flexibility Some examples of pluggability pluggable module descriptor format, support Ivy files and maven 2 pom out of the box pluggable versioning scheme, define which version is greater than another define your own version constraints pluggable conflict managers plug into the engine with triggers

25 Managing your dependencies with Ivy - Apache Con EU 2007 Ivy’s spirit: flexibility Some examples of tasks use artifacts directly from Ivy cache or copy them to your lib directory reuse dependency resolution result order a set according to dependencies install modules and their dependencies from one repository to another one

26 Managing your dependencies with Ivy - Apache Con EU 2007 Ivy’s spirit: flexibility Some examples in Ivy files define as many module configurations as you need use powerful configurations mapping to suit your specific cases, and define your own defaults embed your configurations declaration or define them in separate files declare as many artifacts per module as you want create your own extra attributes with no complex settings

27 Managing your dependencies with Ivy - Apache Con EU 2007 Ivy / Maven2 comparison Better compare Ant+Ivy vs Maven No silver bullet Ant+Ivy Pros Flexible Better control No « magic » Easier migration (if you already use Ant) Maven Pros out of the box feature rich build system reusable experience better maven 2 compatibility

28 Managing your dependencies with Ivy - Apache Con EU 2007 Future Recruit contributors / committers Graduate Release 2.0 We need your help!

29 Managing your dependencies with Ivy - Apache Con EU 2007 Links Ivy web site: Download: Mailing lists: Issue tracking: These slides:

30 Managing your dependencies with Ivy - Apache Con EU 2007 Questions and (hopefully) Answers


Download ppt "Managing your dependencies with Xavier Hanin"

Similar presentations


Ads by Google