ivy

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

半城伤御伤魂 提交于 2019-11-29 19:39:48
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 know the first thing about Maven so please explain this attribute with that consideration. Yes, I've already looked at this: http://ant.apache.org/ivy/history/latest-milestone/ivyfile/dependency.html Thanks, Dan VonC First of all, Ivy is not Maven ;) Maven2 is a

Hibernate 3.6.10 Dependency resolution

ⅰ亾dé卋堺 提交于 2019-11-29 18:14:10
I recently upgraded a project to use hibernate 3.6.10.Final. The project uses ivy to retrieve and the dependencies. Now I'm getting an error that a method in slf4j cannot be found. I believe that this is due to conflicting slf4j dependencies between hibernate-core (requires 1.6.1) and hibernate-commons-annotations (requires 1.5.8). According to the hibernate-core ivy.xml hibernate-core is dependent on hibernate-commons-annotations. This is the error I'm getting: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang

ivy dependency on external JAR

萝らか妹 提交于 2019-11-29 16:27:14
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 about Gradle? Thank you! Misha Let's see if I understood you correctly .. I can't speak for Ivy, but with

gradle - how to declare a dependency of a jar in a jar

帅比萌擦擦* 提交于 2019-11-29 16:26:33
Using gradle, I am consuming a build from an archiva repository. One of the jars ( javax.jms_1.1.0.200810061358.jar ) has the following content: about.html about_files LICENSE.txt jms.jar META-INF MANIFEST.MF The jar I need is actually the jms.jar inside this javax.jms_1.1.0.200810061358.jar The only way I've been able to consume this jar is by pulling jms.jar out of the repository's javax.jms_1.1.0.200810081358.jar and saving it to the file system and consuming it via: repositories { flatDir: my_dir_with_jms.jar_in_it} someone on the gradle list suggested using an Ivy packager resolver. I

Ivy makepom marks all dependencies as optional despite mapping

孤街醉人 提交于 2019-11-29 16:18:05
Given: <dependency org="foo" name="bar" /> and no configurations, following ant snippet: <echo>${ivy.configuration}</echo> <ivy:makepom ivyfile="${build.dir}/ivy.xml" pomfile="${build.dir}/${ivy.module}.pom"> <mapping conf="default" scope="compile" /> </ivy:makepom> Produces pom with with optional dependency on foo.bar and prints "default". If I change mapping to conf="*" then it works but it is obviously suboptimal . Is it possible to map unspecified default configuration or do I need to set conf="default" on all dependencies in ivy.xml ? The optional dependency mapping appears to be the

make ivy not to download sources and license files

被刻印的时光 ゝ 提交于 2019-11-29 15:33:22
Is there a way to configure ivy not to download sources & license files via ivy.xml ? I'm currently trying to use default ivy repos + spring repository. my ivysettings.xml is bellow: <?xml version="1.0" encoding="ISO-8859-1"?> <settings defaultResolver="springSource" /> <include url="${ivy.default.settings.dir}/ivysettings-public.xml" /> <include url="${ivy.default.settings.dir}/ivysettings-shared.xml" /> <include url="${ivy.default.settings.dir}/ivysettings-local.xml" /> <include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml" /> <include url="${ivy.default.settings.dir}

Resolving Apache Ivy dependencies when offline/disconnected?

喜欢而已 提交于 2019-11-29 12:12:34
问题 How can I get Ivy to resolve dependencies (including dependencies with changing="true" ) from the local cache when offline/disconnected? I'm working on a Java-based open-source project that uses Apache Ivy to resolve and download 3rd party dependencies. The project's build.xml has an ant target named resolve that downloads Ivy (if needed) and then uses Ivy to retrieve the required jars. Everything works great when online. However, without Internet access, ant resolve fails even if the

Simplest Ivy code to programmatically retrieve dependency from Maven Central

為{幸葍}努か 提交于 2019-11-29 10:50:28
I find the Ivy API to be immensely complicated. What is the simplest possible snippet to retrieve an artifact from Maven Central into a specific local directory using Ivy 100% programmatically (no Ant, no Xml files, ...)? For the sake of an example say retrieving commons-logging:commons-logging:1.1:jar into /my/destination. I have been working on using Ivy to remotely resolve artifacts (and dependencies) from Maven repository. Here is one code sample that downloads one artifact (w/o dependencies). If you need dependencies, you need to adapt the dependency descriptor. Some note: Ivy uses a

How to attach sources to SBT managed dependencies in Scala IDE?

蹲街弑〆低调 提交于 2019-11-29 10:47:50
问题 I'm using Scala IDE 2.0.1 and SBT 0.11.2 to start with Akka 2.0.1. My build.sbt looks like this: name := "akka" version := "0.1" scalaVersion := "2.9.2" resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/" libraryDependencies += "com.typesafe.akka" % "akka-actor" % "2.0.1" As you can see, there's nothing spectacular. Now how can I tell Eclipse to use the artifact with the sources classifier for the akka-actor library? In SBT, I can use update-classifiers to

Publish SNAPSHOT artifacts to Maven using IVY - what's the magic?

核能气质少年 提交于 2019-11-29 07:53:30
We have a slight convoluted situation... For the most part we've been using IVY and ANT to manage our builds and dependencies. Now the company is moving towards using Maven. We have a set of projects called common libraries which are used by several of the core products. Common libraries use IVY and are published to an IVY repository. We also need to make common libraries available for our new Maven projects. So when common libraries get built and published, I've modified the script to publish to Maven (Artifactory) as well IVY. Here are the two targets that now get called when publishing the