ivy

How to display credits

I want to give credit to all open source libraries we use in our (commercial) application. I thought of showing a HTML page in our about dialog. Our build process uses ant and the third party libs are committed in svn. What do you think is the best way of generating the HTML-Page? Hard code the HTML-Page? Switch dependency-managemen...

Maven or Ivy for Managing Dependencies from Ant?

Hi, 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? ...

How does ivy:publish work?

I'm completely at loss how the ant task ivy:publish is supposed to work. I would expect that I do my normal build, which creates a bunch of jar files, then I would push those jars to the (local) repository. How can I specify from where to retrieve the built jars, and how would those end up in the repository? Update: <target name="pub...

Apache Ant + Ivy build of a web application which is deployed to a local Tomcat

Hi, I will use Apache Ant and Apache Ivy to build a web application which is deployed to a local Tomcat instance (during development). I have some questions: I want to grab most of my dependencies from the Maven2 repositories which works fine, but for the servlet JAR I would like to use the one Tomcat provides. Is there a way to do th...

Can I get Eclipse File Search to include ivyde jars?

The Eclipse File Search dialog doesn't seem to be playing nicely with my ivyde (2.0.0beta1) dependency jars. That is, my ivyde brings some-dep.jar/some-dep.zip (class/source), but I don't see any way to get my file search (ctrl+h search) to include these resources when searching for text -- so if MAGIC_FLAG appears only in the Magic clas...

Ivy: how do I remove transitive dependencies ?

I'm using Ivy to manage the dependencies on my project. So far, I've specified a dependency on Hibernate and servlet-api. However, the hibernate jar itself has a lot of dependencies that aren't really needed, such as jaas and jacc. This becomes a show-stopper because jaas and jaac are Sun libraries and therefore their licenses forbid t...

Trouble getting Hibernate Core and Hibernate Annotations using Apache Ivy (but it's also Maven2 related.)

It's a long one! ;-) There are a lot of copy pasted text in this question which makes it look complicated. And to be honest, it's a lot of information! However to an experienced person a lot of it might be unnecessary and easy to skim over. In its essence I'm only wondering why my basic Hibernate Core + Hibernate Annotations test proje...

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: <dependency org="hibernate" name="hibernate" rev="3.1.3" conf="runtime, standalone -> runtime(*)"/> See that conf attribute? I can't find any explanation (that I can understand) about the right hand side of the -> symbol. PLEASE keep in mind I don't k...

How does Apache Ivy resolve the variables in artifact patterns provided in the ivysettings.xml file?

If my ivysettings.xml file includes: <url name="com.springsource.repository.bundles.external"> <ivy pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /> <artifact pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]...

How do I use TestNG with Apache Ivy?

I tried to use TestNG with Apache Ivy, but was unsuccessful. Here is my ivy.xml: <ivy-module version="2.0"> <info organisation="me" module="myproject"/> <dependencies> <dependency org="org.testng" name="testng" rev="5.8" /> </dependencies> </ivy-module> This fails to actually download a TestNG jarfile. It seems to...

How do you configure Apache Ivy to remove orphan artifacts?

Let's say I have an ivy.xml that contains the following: <dependency org="checkstyle" name="checkstyle" rev="4.3" /> And then I want to upgrade to Checkstyle 4.4, so I change my ivy.xml to contain: <dependency org="checkstyle" name="checkstyle" rev="4.4" /> After a retrieve with the first configuration, I have the file checksty...

Point ivy dependency at a local file?

I've got a main project where module A depends on a a .jar file created by the build for module B. While I'm in development, I'm modifying B regularly, then building B to create the library, then building A to use these changes. Is there a way to point module A's ivy file to the jar file my module B build creates? Given I'm iterating mu...

Apache Ivy: resolving dependencies embedded in an installer

I have a problem with a build where I have to resolve non-standard artifacts through Apache Ivy. Problem: I have dependencies on two artifacts (a.jar and a-lib.jar). The two dependencies come only as part of a single installer (a_installer.jar). The installer can be downloaded, the embedded artifacts themselves not. It's possible to ...

Handle file:// protocol in Ant script

Some Ant targets require an URL to be defined as property (like the ivy pattern) and since the file:// protocol is different on Windows (either file:/ or file:///) and Unix (file://) it makes the entire script less portable. Is there a nice way to handle the file protocol without messing around with properties and Ant conditions? ...

How do I use JBossAS 5 with Apache Ivy?

I am relitively new to Apache Ivy and am trying to move an existing dev project to using Ivy for dependency management. The last dependency I have to configure is jboss-javaee.jar. I can't find it anywhere and am getting the following error message when running [ivy:retrieve] :: problems summary :: [ivy:retrieve] :::: WARNINGS [ivy:r...

Managing os-specific libraries with Ivy

Assuming there's a os-specific library ( .so/.dll ) attached to a Java project, what's the way of handling this using Ivy? ...

Ivy via Nexus proxy

Hi, does anyone knows how do I specify in Ivy something like mirror/mirrorOf in Maven? I'm working with a local Maven proxy (Nexus) and need the tool to specify which of the parent repositories should Nexus proxy be accessing. In Maven I do simply: <mirrors> <mirror> <id>central-mirror</id> <mirrorOf>central</mirrorOf> ...

How to get dependency with Ivy

I am in the process of reviewing the use of Ivy in our application. I have set up a simple configuration to pull down cobertura. <ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"&gt; <info organisation="com" modul...

Source code of libraries downloaded with ivy

I use ivy with the ivy eclipse plugin to download dependencies. Works great. But how can I attach the source code for those libraries, in order to step into these libraries? ...

Sharing ivy configurations

I'm maintaining multiple projects backed by ivy configurations. Many configurations overlap, such as: common build configurations ( pmd, findbugs ); dependency groups ( spring ); Is there a way to import these dependencies by referencing a shared configuration? N.B. Please don't suggest Maven, as I know about it, but it is not (ye...