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
1 answer

"Copy" an artifact in Ivy

In Ivy I have a published artifact that is flagged with an integration status. Our CI server continuously publishes the artifact when it detects changes in the source code. At some point we reach a stable release point, and want to publish the…
Ryan Nelson
  • 4,466
  • 5
  • 29
  • 45
0
votes
1 answer

deleting jars from ivy resolved libraries

I have two jars that conflict in my libraries in the java build path. Both of them are resolved by ivy, so I see them inside an ivy.xml entry on the libraries tab. I can't delete anything inside the ivy.xml entry, eclipse only lets me delete the…
Peter
  • 1,047
  • 2
  • 18
  • 32
0
votes
3 answers

List available artifacts from repo with gradle, ivy or other

I'm looking for a way to list all available artifacts programmatically for given repo url, group and artifact. The repo is maven-based. I know about maven-metadata.xml but the repo that is in use doesn't provide classifier details which are crucial…
Opal
  • 81,889
  • 28
  • 189
  • 210
0
votes
0 answers

How to exclude specific parts of an Ivy dependency on Android

I'm working on an Android app that will use Kafka. It has a ton of dependencies, so I've decided to use Ivy to manage them (though I've never used it before, and I'm inexperienced with Apache stuff in general). My problem is that one of Kafka's…
user2518951
  • 3
  • 1
  • 3
0
votes
1 answer

Depend on gradle project using ivy

I'm working on a web app, using JPA, Hibernate and Ivy for dependency management. Adding the dependency to hibernate from the maven repo is straightforward, but now i need to modify hibernate source, rebuild it and add my own fork as dependency. The…
lelmarir
  • 593
  • 2
  • 7
  • 24
0
votes
2 answers

How to use Ant delete to delete from pathid

I have a super wonderful task that populates a path id... Without writing complex Java code is there a way to convert "mypath" into…
user959690
  • 602
  • 9
  • 16
0
votes
1 answer

Publishing ivy file without jar

I have a "parent" module in multimodule ant+ivy project. It's only purpose is to provide parent ivy module for other projects. No other artifacts are produced:
Marcin Wisnicki
  • 4,511
  • 4
  • 35
  • 57
0
votes
1 answer

Ivy Resolver Namespaces and the Resolve task

I am working with two ivy repositories that have inconsistent naming, I am looking at using namespaces to help with the mappings, but do namespaces affect operations besides "install" such as "resolve"?
Mark Bidewell
  • 397
  • 4
  • 12
0
votes
1 answer

Generate ivy.xml with Gradle ivy-publish plugin

Hi I want to make empty project (without source), which to use my jar helloWorldPlugin and to manipulate with the ivy descriptor so I made build.gradle in an empty project dir with content: apply plugin: 'java' apply plugin:…
Xelian
  • 16,680
  • 25
  • 99
  • 152
0
votes
1 answer

publish all ivy dependencies

How can I publish all project dependencies to local filesystem repository ? For example I have project P that depends on A. I would like to copy A and P to local m2 repository, but will only copy P. Optionally: The repository should…
Marcin Wisnicki
  • 4,511
  • 4
  • 35
  • 57
0
votes
2 answers

including jar file in ivy dependencies

I am using netbeans 7.1.1 and ivy together. I have ivy.xml file as follows :
voidMainReturn
  • 3,339
  • 6
  • 38
  • 66
0
votes
2 answers

ivy cleancache but specific folders

We have some internal jars in a remote repository and do not build them very often.The resolver looks like this: view-snapshots is a local repo and hub-releases is a shared repo.
Shweta
  • 924
  • 14
  • 23
0
votes
1 answer

Ivy resolve issue rev="1.0.+"

In ivy.xml in ivy settings:
Shweta
  • 924
  • 14
  • 23
0
votes
1 answer

Build Error in Ant +Ivy project in Jenkins

I am new to jenkins and am trying to build an Ant+Ivy project using jenkins and have configured Java_Home as C:\Program Files\Java\jdk1.6.0_21.I have pasted the console output. 09:38:47 09:38:47 BUILD FAILED 09:38:47 Target "Files" does not exist…
Shweta
  • 924
  • 14
  • 23
0
votes
1 answer

Building Apache Hive - impossible to resolve dependencies

I am trying out the Apache Hive as per http://wiki.apache.org/hadoop/Hive/GettingStarted and am getting this error from Ivy: Downloaded file size doesn't match expected Content Length for…
Sasha O
  • 3,710
  • 2
  • 35
  • 45
1 2 3
99
100