ivy

Use Ivy to get latest X.X.X.Final Hibernate

安稳与你 提交于 2019-12-06 16:54:09
I am using IvyDE in Eclipse and getting unresolved dependency: org.hibernate#hibernate-core;final: not found using code: ivysettings.xml <ivysettings> <settings defaultResolver="maven2"/> <resolvers> <ibiblio name="maven2" m2compatible="true"/> </resolvers> <version-matchers> <pattern-vm> <match revision="final" pattern="\*Final" matcher="regexp"/> </pattern-vm> </version-matchers> </ivysettings> ivy.xml ... <dependency org="org.hibernate" name="hibernate-core" rev="final"/> ... I have tried rev="final()" and get the same error. I am using http://ant.apache.org/ivy/history/latest-milestone

Getting rid of org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 that cannot be casted to String

白昼怎懂夜的黑 提交于 2019-12-06 14:19:42
问题 I have just run into the Apache Ivy bug java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String (link) when performing Ant task ivy:config This morning I tried to install LibraryFolder ClasspathContainer plugin into my Eclipse (STS 3.6.1): installing it caused the above error every time I tried to perform ivy:retrieve . Even worse, I tried to install IvyDE plugin from Eclipse Marketplace and Eclipse started to crash at a

How do I tell ivy4r to stay offline?

江枫思渺然 提交于 2019-12-06 09:46:14
We recently switched from Ant to Buildr for building our projects. We use Ivy for dependency management, using the ivy4r Buildr extension. We have a local repository at the office which is used as a cache for public artifacts and in which we also publish our own artifacts. Now for the problem: I'd like to be able to build my project when I do not have access to the office repository. Buildr has a flag to tell it to work offline ( -o ), but ivy4r does not seem to take this into account. Is there any way to make Ivy not try to download artifacts? I have them all available in the cache on my

Logback dependency preventing SBT running offline

怎甘沉沦 提交于 2019-12-06 08:56:16
This is a refinement of a previous question with closer attribution to the problem. I'm trying to confirm I can run my SBT project offline. I can, unless logback is one of my libraryDependencies. Why is logback triggering a problem? I've made a simple example consisting of just a build.sbt and a 'hello world' app... build.sbt with a bunch of random dependencies to prove the point: name := "testProject" version := "0.0.1" scalaVersion := "2.10.3" libraryDependencies ++= Seq( "org.apache.commons" % "commons-math3" % "3.2", "com.amazonaws" % "aws-java-sdk" % "1.4.0.1", "ch.qos.logback" % "logback

Ivy - resolve same dependency twice (with two different versions), to two different files

你离开我真会死。 提交于 2019-12-06 08:11:39
问题 I have a special situation where I need to package up some jars, and I need BOTH versions of a jar. My ivy definitions looks like this: <dependency org="blah" name="blahname" rev="1.0.0" conf="baseline->default" /> I would like the same dependency resolved twice, once with version 1.0.0 and another with say version 2.0.0. Is that possible? What's the easiest way to achieve this. 回答1: Use ivy configurations to create and manage custom groups of dependencies. Example ivy.xml <ivy-module version

how to get ivy:cachepath location without checking if dependencies downloaded

北战南征 提交于 2019-12-06 07:56:34
I have a task in my build.xml : <target name="init" depends="init-ivy"> ... <ivy:cachepath inline="true" module="jersey-container-servlet" organisation="org.glassfish.jersey.containers" pathid="jersey.classpath" revision="2.23.2" /> ... </target> This task downloads ivy if necessary ( init-ivy does that actually) and then invokes ivy to download dependencies. It sets jersey.classpath as the result. Right now my build task depends on the init task. So every time I build, it checks if dependencies need to be installed. I want to avoid checking dependencies every time and have build separate from

IvyDE + WTP: How to workaround that ivy library is ignored by WTP?

狂风中的少年 提交于 2019-12-06 07:24:06
问题 I have found IvyDE which allows me to solve an outstanding problem of having a frozen core version of a web application, which needs to be able to pull in extra code from an update library so it is on the classpath of the web application. For development speed I've found that the "Resolve in Workspace" facility allows Eclipse to put the folders of the update library project directly on the build path of the frozen core web application. Works well for normal Java applications. For Web

How to use Ivy + IvyDE in eclipse to put different jars in lib and web-inf/lib

假如想象 提交于 2019-12-06 07:20:27
So, I'm trying to add Ivy to my project, which outputs a WAR file. Some dependencies, like RESTEasy and Jackson are available at runtime in JBoss, so I don't want those in my war/WEB-INF/lib folder. Others libraries are not available via JBoss modules, so I want to include those in my project. ** NOTE: In eclipse, I'm using the Dynamic Web Module facet. The idea is to get IvyDE to copy the desired runtime dependencies into war/WEB-INF/lib. Initially I created 2 ivy configuration files: ivy.xml - runtime (not included in WAR) ivy_web.xml - include in war Then I used the GUI to configure the IDE

Custom Plugin transitive Dependency resolution in BuildConfig.groovy Grails 2.2.3

爱⌒轻易说出口 提交于 2019-12-06 06:42:32
问题 tl;dr version Dependencies of my custom grails plugin weren't getting inherited and resolved by projects I installed the plugin to. Install the latest version of the release plugin to your plugin (fixes the issue for jar dependencies) Clear out any references to plugins that might exist in your BuildConfig.groovy file (fixes the issue for plugin dependencies) grails maven-install to make the plugin available in the mavenLocal() source Long version So, I've been trying to create a custom

Using Gradle's “Artifact only notation” with a custom artifact name

纵饮孤独 提交于 2019-12-06 05:50:18
问题 I'd like to use the Artifact only notation to download a single artifact whose filename is completely different from the module name. My Ivy artifact pattern is configured as: ivy { artifactPattern 'http://host/[organization]/[module]/[revision]/[artifact]-[revision].[ext]' } However, the "Artifact only notation" seem to only support: group (maps to [organization] ), name (maps to [module] ), version (maps to [revision] ), ext (maps to [exp] ) and classifier (maps to [classifier] , not used