ivy

Ivy used to retrieve guava, now it does not

为君一笑 提交于 2019-12-11 10:46:30
问题 Related question: Ivy cached a dependency file, but not copy to my lib My situation is nearly identical, except that this has been working for quite a while until recently. Ivy retrieves other jars: transitive dependencies like com.google.code.findbugs, and specified artifacts like junit. It does not copy the guava jar to my lib. ivy.xml: <ivy-module version="2.0"> <info organisation="mine" module="external-deps"/> <dependencies> <dependency org="com.google.guava" name="guava" rev="14.0.1"/>

Resolve Ivy dependency version order

倾然丶 夕夏残阳落幕 提交于 2019-12-11 10:11:49
问题 In my build artifact repository, I have builds from both a branch and a trunk. I have tested that my resolve works to the branch, and grabs the correct item. But this doesn't work if the dependency is also in the trunk repo. In this case it grabs the dependency from the trunk and not my branch. I need resolve to pull a dependency from the trunk repo if it's not in the branch, but if the dependency is in the branch, I need the branch version, not the trunk version. How can I do this in Ivy? I

What is a configurationmapping in ivy?

放肆的年华 提交于 2019-12-11 07:38:53
问题 I have stuff like this: <configurations defaultconfmapping="build->default;compile->compile(*),master(*);test,runtime->runtime(*),master(*); statistic->stistic(*)"> in my ivy.xml and I don't understand the concept of a 'configuration mapping' Who gets mapped to what? Why? What does the (*) mean? 回答1: I've been trying to understand this myself for the last few days. I think this is how it works: "build->default" means that if I ask for all of the "build" dependencies of my jar, then Ivy pulls

Ivy can't resolve log4j from Maven Central

谁都会走 提交于 2019-12-11 07:37:56
问题 New to Apache Ivy, and can't get it to resolve the latest log4j jar from Maven Central. I'm using IvyDE to manage all of my dependencies and using all of its defaults, which I believe configure it to use either the Maven repo or Ibiblio. This link takes you to Maven's log4j page. From here I am just using the Apache Ivy <dependency> tag provided on that page: <dependency org="log4j" name="log4j" rev="1.2.16" > <artifact name="log4j" type="bundle" /> </dependency> When I add this to my ivy.xml

Add ant plugins dynamically at buildtime?

筅森魡賤 提交于 2019-12-11 06:43:18
问题 I'd like to set up an Ant build that pulls down its plugins at buildtime. So for instance, if my build used findbugs and checkstyle JARs and called their tasks from inside build.xml, then ideally I could: Run an ivy-resolve and ivy-retrieve task to pull findbugs and checkstyle JARs down into, say, gen/lib/buildtime . Add gen/lib/buildtime to Ant's classpath Define <taskdefs> that define the various findbugs and checkstyle tasks Execute the findbugs and checkstyle tasks in a downstream target

Is it possible to turn off ivy's cache altogether?

大兔子大兔子 提交于 2019-12-11 05:57:19
问题 I'm talking about ivy 2, not some newer version. 回答1: Switching off the cache affects performance. Switching it off loses one of the big benefits of dependency management, because you'd force each build to download everything.... Having said that, over time the cache sometimes become stale, especially in situations where the remote modules might have changing dependencies (Can occur during development). To counter this problem I always include an extra build target that purges my ivy cache:

Add Ivy managed dependencies to Android build path

只愿长相守 提交于 2019-12-11 03:08:22
问题 Using Eclipse and Ivy, I'm successfully able to download and manage dependencies. These dependencies are added to Eclipse's build path using IvyDE's container. However, Android does not find the dependencies. As a workaround, I have to add each Ivy-managed dependency to the build path manually. Is there a cleaner approach? Can IvyDE be configured with Android in mind? 回答1: Updating to the latest version of ADT (r16 at the time of writing) has solved the issue. 回答2: Not an Android developer,

Is there a way to specify an Ivy dependency using a dynamic revision but restricting the status?

五迷三道 提交于 2019-12-11 03:03:23
问题 Is it possible for me to declare a dependency using a dynamic revision while restricting the status of the retrieved artifact? For example, I want to define a version range, something like "[1.0,1.1[", but I don't want artifacts with a status of integration, only milestone or release. So I want version 1.0.5 if it has a status of "release" even if there's a version 1.0.6 with a status of "integration." I know about latest. status , but that's not really what I want: I need to define an upper

Specify ivy configuration in gradle dependency

*爱你&永不变心* 提交于 2019-12-11 01:36:16
问题 I want to resolve dependencies from ivy repository but I don't know how to specify ivy configuration for it. I found that I should do it in this way: myconf group: 'com.eu', module:'MyModule', version:'1.0.0', configuration: 'ivyconf' but it doesn't work. When I run gradle dependencies command gradle returns this error: Could not create a dependency using notation: {group=com.eu, module=MyModule, version=1.0.0, configuration=ivyconf} My build doesn't use plugins. I want to download

Ant Ivy: Producing text report of the runtime jars

北慕城南 提交于 2019-12-11 01:08:48
问题 Normally, when we download jars from Ivy, we set pattern to include the version number of the jar. <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact]-[revision].[ext]" log="${ivy.log}"/> However, for this one project, we can't do that. Jars have to be downloaded without version ID on them: <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]"/> This app is installed by overwriting what is already there. If a revision of a particular jar gets changed from one release to the next, we