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
114
votes
6 answers

Gradle - getting the latest release version of a dependency

What would be the easiest way to tell Gradle the following: Retrieve 'junit' dependency and take its latest 'release' version. Managing Maven and Ivy repositories is sort of new to me. I tried the following steps and they result in Could not…
Yippie-Ki-Yay
  • 22,026
  • 26
  • 90
  • 148
104
votes
1 answer

What is the meaning of type "bundle" in a maven dependency?

What is the meaning of "bundle" e.g in this dependency: org.apache.abdera abdera-core 1.1.2 bundle compile
Zeemee
  • 10,486
  • 14
  • 51
  • 81
90
votes
29 answers

Angular 9 - NGCC fails with an unhandled exception

Building the application after having upgraded dependencies to Angular 9 (and having performed the necessary code changes) throws an error: Compiling @angular/animations : es2015 as esm2015 Compiling @angular/animations : es2015 as esm2015 …
kay-1234
  • 901
  • 1
  • 5
  • 5
77
votes
6 answers

how do I get sbt to use a local maven proxy repository (Nexus)?

I've got an sbt (Scala) project that currently pulls artifacts from the web. We'd like to move towards a corporate-standardized Nexus repository that would cache artifacts. From the Nexus documentation, I understand how to do that for Maven…
Harlan
  • 18,883
  • 8
  • 47
  • 56
69
votes
4 answers

Can someone explain the ivy.xml dependency's conf attribute?

I can't find any thorough explanation of the Ivy dependency tag's conf attribute: See that conf attribute? I can't find any explanation (that I…
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
56
votes
1 answer

Maven or Ivy? Which one is better with a system already in production? And the other differences?

I know that this is a complicated question, but I would like know which one is better in the case of a system that it's already in production, with a lot of bugs and really bad design at all. A really mess. Actually, I'm asking this because I'm…
Pmt
  • 1,122
  • 3
  • 13
  • 27
49
votes
6 answers

How to access a secured Nexus with sbt?

I'm trying to access a Nexus repository manager which requires some basic authentication. Everything works fine from Maven2 but when I try to configure things in SBT it can't find the artifacts. It is using a custom repository pattern (see this…
Bryan J Swift
  • 1,449
  • 2
  • 15
  • 17
45
votes
3 answers

good ivy tutorial for local repository?

Can anyone point me at a good tutorial for making & using a local repository with Ivy? (Please don't point me at the Ivy docs, the tutorials are rather confusing) I need to make a local repository to include .jar files that aren't necessarily…
Jason S
  • 184,598
  • 164
  • 608
  • 970
41
votes
3 answers

Echoing out ant fileset to screen for Debugging

I have this:
mainstringargs
  • 13,563
  • 35
  • 109
  • 174
41
votes
5 answers

How to search public Maven/Ivy repositories for a particular class?

There are web sites like http://mvnrepository.com/ letting to search for an "artifact" and giving a definition I can add to my project for a library to be downloaded automatically from a public repository. But this particular example…
Ivan
  • 63,011
  • 101
  • 250
  • 382
38
votes
3 answers

Use public maven repository with ivy

I have an ivy.xml containing The whole superwidget stuff is hosted in a maven repository at…
Adam Schmideg
  • 10,590
  • 10
  • 53
  • 83
38
votes
7 answers

How to configure Ivy cache directory per-user or system-wide?

I am using SBT as my build tool for building a Scala project. My problem is, I can't configure SBT to download dependencies to my user home directory. Therefore I am looking for a per-user or even better a system-wide setting to tell SBT to put the…
Ruediger Keller
  • 3,024
  • 2
  • 20
  • 17
36
votes
8 answers

Maven or Ivy for Managing Dependencies from Ant?

I was wondering about the best way to manage projects dependencies from ant. What are the pros and cons of the Maven Ant task and of Ivy?
Loki
  • 29,950
  • 9
  • 48
  • 62
34
votes
5 answers

Ivy fails to resolve a dependency, unable to find cause

While using ivy:retrieve, it fails to resolve the dependency that should be downloaded. The output looks like this: Buildfile: C:\Users\Simon\workspace\apollo\build.xml init: resolve: BUILD FAILED C:\Users\Simon\workspace\apollo\build.xml:42:…
Simon Sheehan
  • 745
  • 2
  • 8
  • 17
33
votes
7 answers

How does Archiva compare to Nexus?

There are a few similar questions already, but most are either focused on Nexus vs. Artifactory, or are a few years old. I wanted to get a sense of where the two project stand these days. My impression is that Nexus is the best regarded repository…
Dmitri
  • 8,999
  • 5
  • 36
  • 43
1
2 3
99 100