ivy

How does one consolidate version management in Ivy, like parent-pom <dependencyManagement> in Maven?

醉酒当歌 提交于 2019-12-04 05:29:06
问题 We have many projects that need to use common version numbers. What is best practice for doing this with Ant/Ivy? Do you just inherit a wad of properties from Ant that have the version numbers in them, or is there a more formal mechanism a la Maven? 回答1: As you've pointed out I think this is the problem which the new extends functionality has been designed to solve. To be completely honest I'm not a fan of parent-child modules in Maven.... However, just like you sometimes I want to nail lots

Setting ivy home directory in Ant

你离开我真会死。 提交于 2019-12-04 05:12:57
I would like to set the ivy.default.ivy.user.dir to something other than the default ${user.home}/.ivy2 . I can do this on the command line with ant -Divy.default.ivy.user.dir=${WORKSPACE}/IVYCACHE . But, I would like to have it set without a command line arg. I have tried setting this property in my build.xml, my common.xml and my ivysettings.xml. The strange thing is, that it seems to set the default cache to this path, but the verbose output says that there is no default setting for user.dir, so it uses the ${user.home}/.ivy2 path. Here is the output when I set the user.dir in my build.xml

Apache Ivy: resolving dependencies embedded in an installer

二次信任 提交于 2019-12-04 03:44:57
问题 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 manipulate the installer to unpack the needed dependencies. Requirements: I have to resolve/download the artifacts during the build (I cannot keep the installer

Ivy, Ant, Jenkins - Is it good idea to to a <ivy:cleancache> on Jenkins builds?

假装没事ソ 提交于 2019-12-04 02:52:21
We are going to be using Ivy with Ant, and we'll have Jenkins do our builds. I originally thought that having Jenkins do a <ivy:cleancache/> before running a build would be a good idea. (It would be part of the mandatory "clean" target). However, I now see that <ivy:cleancache> doesn't simply clean up stuff from <ivy:cachepath> , but really removes the entire $HOME/.ivy/cache directory. My concern is that if Jenkins does a <ivy:cleancache> on all builds before they start, it will interfere with other builds that Jenkins could be executing. Is doing an <ivy:cleancache> a good idea, especially

Location of xsd for ant ivy lib “antlib:org.apache.ivy.ant” for IDE autocomplete with xsd?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 02:04:31
I want create Ivy Ant tasks in xml editor in IDE (Intellij iDEA) with autocomplete based on xsd , but I cannot find xsd for register XML namespace xmlns:ivy="antlib:org.apache.ivy.ant" Where I can find it? might be, there was no xsd in the past time this discussion started, but at least since may 2011 the ivy scheme is well documented at http://ant.apache.org/ivy/schemas/ivy.xsd which is linked right from the documentation in http://ant.apache.org/ivy/ so, to start over using the scheme, you just need: <?xml version="1.0" encoding="UTF-8"?> <project name="yourproject" xmlns:ivy="antlib:org

How do you integrate ivy with MSbuild

萝らか妹 提交于 2019-12-03 20:54:29
问题 What approach has worked well for you combining IVY + msbuild? Our goal is to integrate IVY into the C#/C++ build process for dependency resolution and publishing. We have tried adding it to custom tasks at the beginning and end of the build and we have tried wrapping the msbuild calls with ant+ apache-ant-dotnet. Other options might be gradle, buildr, rake. What do you use? Thanks Peter 回答1: Most build technologies can use libraries found in a local directory. I'd suggest using the command

Using NAnt and Ivy to build a VB6 project

北战南征 提交于 2019-12-03 20:48:46
I am working on a continuous integration system for both .Net and VB6 applications using Subversion, CruiseControl, NAnt and Ivy. The .Net side of things isn't too much of a problem, but I need a little guidance with the VB6 side of things, more from the 'DLL-hell' side of things! My current set-up is getting all dependent files for my VB6 system, as expected and builds the various projects within ok. BUT... it's using DLLs that are already registered on my PC, and not those within my Lib folder, which is where I am resolving my dependencies from Ivy. I can get around this problem by

Ivy appears to fetch javadoc jars only

て烟熏妆下的殇ゞ 提交于 2019-12-03 20:21:24
问题 I'm using Ivy on my project, with the Ivy Eclipse plugin. It appears that certain jars which are downloaded and added to my project are the javadoc jars, not the jars with the actual code. Note - this doesn't happen with all jars. For example, adding this to my ivy.xml file: <dependency org="junit" name="junit" rev="4.8.2"/> caused the javadocs for junit to be downloaded and added to my classpath: This breaks compilation for my project, as none of the unit tests are working. This was working

ivy dependency on external JAR

我的未来我决定 提交于 2019-12-03 18:12:20
问题 I am battling with Ivy (I tried maven but had an event more difficult time setting up the JBoss repository for Hibernate). Quick question - I am using this wonderful package: http://ooweb.sourceforge.net/index.html Unfortunately, the JAR is only available through Sourceforge: http://sourceforge.net/projects/ooweb/files/ooweb/0.8.0/ooweb-0.8.0-bin.tar.gz/download Is there a way to get Ivy to download a specific JAR? For that matter, is it possible to do with Maven? Or for that matter, how

How can I best share Ant targets between projects?

╄→гoц情女王★ 提交于 2019-12-03 17:42:36
问题 Is there a well-established way to share Ant targets between projects? I have a solution currently, but it's a bit inelegant. Here's what I'm doing so far. I've got a file called ivy-tasks.xml hosted on a server on our network. This file contains, among other targets, boilerplate tasks for managing project dependencies with Ivy. For example: <project name="ant-ivy-tasks" default="init-ivy" xmlns:ivy="antlib:org.apache.ivy.ant"> ... <target name="ivy-download" unless="skip.ivy.download">