Questions tagged [ivy]

Apache Ivy is a subproject of Ant to simplify dependency management. Its primary use is to retrieve prerequisite JAR files from repositories and to publish new JAR files. A major feature of Ivy is that it integrates with normal Ant projects instead of requiring a new paradigm. (Note: This tag should not be used for questions regarding Angular's Ivy compiler - instead, use the angular-ivy tag.)

Apache Ivy is a subproject of Ant to simplify dependency management.
Its primary use is to retrieve prerequisite JAR files from repositories and to publish new JAR files. A major feature of Ivy is that it integrates with normal Ant projects instead of requiring a new paradigm.
It is able to handle Maven repositories.

Enable Ivy in your build.xml

Ivy is packaged as an antlib, so to enable it you need to do the following

  1. Declare the ivy namespace at the top of the build file

    <project ..... xmlns:ivy="antlib:org.apache.ivy.ant">
    
  2. Include the ivy jar in one of the ant library directories. A good practice is to include the following target in your build files to setup a new environment:

    <target name="install" description="Used to install the ivy task jar">
      <mkdir dir="${user.home}/.ant/lib"/>
      <get dest="${user.home}/.ant/lib/ivy.jar" src="http://search.maven.org/remotecontent?filepath=org/apache/ivy/ivy/2.2.0/ivy-2.2.0.jar"/>
    </target>
    

Getting Started

References

Eclipse-Plugin

Repository Managers

IVY and Maven

1588 questions
0
votes
0 answers

How to get list of libraries that are not up-to-date defined with Ivy

We are using Ivy for managing dependencies in a big project. There are 100+ libs defined in ivy.xml. How can we get/check list of libs that are not up-to-date? (maybe 3rd party scripts/tasks)
moleksyuk
  • 413
  • 5
  • 10
0
votes
1 answer

NoClassDefFoundError using ivy. Jars not adding to classpath

It seems that the jars I pulled from my maven repo are not getting put into my java classpath. I thought the ivy cache took care of this? Whenever I run a class either in eclipse or outside eclipse I get NoClassDefFoundError. It compiles fine but…
Decrypter
  • 2,784
  • 12
  • 38
  • 57
0
votes
1 answer

Are Ivy and Gradle configurations equal?

In Gradle we have a configuration which consists of dependencies and one configuration can extends multiple others, but how is in Ivy and do we have full equivalency between Ivy and Gradle's configurations? Ivy
Xelian
  • 16,680
  • 25
  • 99
  • 152
0
votes
1 answer

Purpose of the ivy.xml for publishing artifacts?

I make a Gradle build and when use ivy-publish plugin I generate jars and ivy.xml descriptor with the configurations and dependencies of my project, but what is the purpose of this file? Why is needed for runtime applications which use my build to…
Xelian
  • 16,680
  • 25
  • 99
  • 152
0
votes
0 answers

Grails - How to make ivy-cache folder structure the same as maven repository folder structure?

Is it possible to make ivy-cache folder structure the same as maven's repository folder structure? I am planning to use the same location (path,folder) as maven repository and ivy-cache. I'm getting some dependency issues. To resolve them, I feel…
Sun
  • 3,444
  • 7
  • 53
  • 83
0
votes
2 answers

Apache Ivy and configurations

I'm using Ivy to manage my dependencies, with some problems on provided jars This is my ivy.xml file
Carlos Garces
  • 829
  • 1
  • 11
  • 24
0
votes
1 answer

Creating a maven repository that downloads and stores jars from another maven repository

We have a maven repository setup on a computer (host is http://repository:8280). Jars are uploaded to the repository and we use IVY to pull relevant jars for development. We have an office in another country, many miles from the repository server.…
Decrypter
  • 2,784
  • 12
  • 38
  • 57
0
votes
2 answers

ivy and ivyde and FileSystem resolvers

I'm having an issue getting an ant/ivy build and eclipse/ivyde build to work well with each other. Here's my setup, where 'git_root' is different for each developer: /{git_root} | -/projectA -/B | -…
ticktock
  • 1,593
  • 3
  • 16
  • 38
0
votes
1 answer

NoClassDefFoundError XmlSchema with IVY dependency

In my Java Wicket application with Apache Ivy and JBoss I'm using a dynamic web project (Axis2). On the method populateAxisService() throws org.apache.axis2.AxisFault I get the following error: java.lang.NoClassDefFoundError:…
Alex
  • 223
  • 1
  • 6
  • 21
0
votes
1 answer

ivy module.xml doesn't contain all artifacts when gradle publish is used

I believe this may be related to publish artifact overwrite other artifact in Gradle if I have a set of publications such as publishing { publications { serverpub(IvyPublication) { artifact(ejbJar) { name 'ejb' } } …
default_avatar
  • 306
  • 3
  • 14
0
votes
1 answer

Ivy: How to set cache policy for SNAPSHOT dependencies?

I'm using Ivy Ant and would like to create a policy such that the build checks for the most recent update to a dependency on every build. This is because we're developing in partnership and want to immediately see changes pushed up to the Nexus…
user959690
  • 602
  • 9
  • 16
0
votes
1 answer

Ant Build: Extract class files from a Ivy dependency war file in the class folder

I have a project with a dependency to some other Java classes from another project. In eclipse the two projects are running without any errors. Now I want to build the project with the dependency with Jenkins and Ant. I get the dependency from Ivy…
RedLeffer
  • 87
  • 1
  • 4
  • 9
0
votes
1 answer

having problems to create a vaadin 7 project while disconnected from internet

struggling to create a project using the vaadin eclipse plugin, eclipse doesn't find the version of vaadin, can't create the pre-configurations in the web.xml file automaticallyhave have to do it manually and does not create the ivy.xml I have…
alculete
  • 309
  • 4
  • 18
0
votes
1 answer

Ivy: Using dynamic revisions

I'm having problems understanding how I to use dynamic revisions of Ivy effectively in my Java projects. Currently, I have the following layout: lib-a revision: 1.0.0 status: release dependencies: none lib-b revision: 2.0.0 status:…
jaw
  • 932
  • 2
  • 10
  • 24
0
votes
1 answer

Finding dependecies between modules of a legacy ANT project for migration to IVY

I am dealing with a project using using ANT to build the source code into a EAR. The project over couple of years has grown to a mammoth size, more than fifty modules, and not surprisingly it takes 2 hours to build the source code. The obvious…
Anadi Misra
  • 1,925
  • 4
  • 39
  • 68
1 2 3
99
100