ivy

Why sbt runs dependency resolution every time after clean?

痴心易碎 提交于 2019-11-28 17:54:08
SBT runs dependency resolution every time after clean even if project dependency management configuration hasn't changed. This is time consuming when running on CI server. But documentation says : Normally, if no dependency management configuration has changed since the last successful resolution and the retrieved files are still present, sbt does not ask Ivy to perform resolution. How can I stop sbt from doing dependency resolution every time I build project with sbt clean publish-local ? Update I've discovered that sbt also runs resolution when I enter in interactive mode with sbt . Update2

The svn client 'svnkit' is not available

ⅰ亾dé卋堺 提交于 2019-11-28 14:30:11
I have been using svnant 1.3.0 to create tags from branches in my SVN repository. Now I have upgraded from SVN 1.6 to 1.7 and there is no released svnant binary that supports it. But I have downloaded the svnant 1.4 source from tigris.org and build a svnant.jar. I know that svnant has a few dependecies and I have the following: svnkit 1.7.5 (from svnant repository), svnjavahl (from svnant repository), svnClientAdapter (from svnant repository), svnkit-cli (from svnant repository), trilead-ssh 1.0 (from maven repository) and ganymed-ssh.jar build 210 (from maven repository). I use IVY for

Ivy - Can't download because POM file and the JAR file name aren't matching patterns

白昼怎懂夜的黑 提交于 2019-11-28 12:55:20
me again with IVY. The problem now is that the ivy file the POM file to the JSON library is called: http://repo1.maven.org/maven2/net/sf/json-lib/json-lib/2.4/json-lib-2.4.pom json-lib-2.4.pom But the JAR file is called: json-lib-2.4-jdk13.jar The -jdk13 makes it so that the pom file cannot be found. Ergo it can't download the JAR file because it says this: == resolving dependencies egencia#com.egencia.test.framework;working@ESFVMVI-750->net.sf.json-lib#json-lib;2.4 [default->compile] [ivy:resolve] tried http://repo1.maven.org/maven2/net/sf/json-lib/json-lib/2.4/json-lib-2.4-jdk13.jar [ivy

Hibernate 3.6.10 Dependency resolution

折月煮酒 提交于 2019-11-28 12:37:59
问题 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;

can I turn off the .ivy cache all together?

醉酒当歌 提交于 2019-11-28 12:28:57
Is there a way to tell ant/ivy to not use a local $HOME/.ivy2 cache? In the full book on ivy , you check out the "Setting up the repositories" section: Several repositories use the same root in your filesystem. Referenced as ${ivy.default.ivy.user.dir} , this is by default the directory .ivy2 in your user home. Note that several things can be done by setting Ivy variables. To set them without defining your own ivysettings.xml file, you can: set an Ant property before any call to Ivy in your build file if you use Ivy from Ant set an environment variable if you use Ivy from the command line For

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

梦想与她 提交于 2019-11-28 11:01:28
问题 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

make ivy not to download sources and license files

被刻印的时光 ゝ 提交于 2019-11-28 10:01:41
问题 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

where do you put ivysettings.xml?

荒凉一梦 提交于 2019-11-28 09:07:17
I'm trying to learn how to use ivy and would like to setup a local repository of the .jar files I've downloaded. Where do you put the ivysettings.xml file? Does it go in the ant library directory? If you'll allow me to clarify, the ivysettings.xml is the configuration of your development environment as a whole. It is not related to the repository items themselves. Generally speaking, ivysettings.xml should sit alongside your main build.xml , so that when you put <ivy:settings file="ivysettings.xml"/> in your build.xml , it just finds it in the current directory. This file is completely

Unable to add jar file to .ivy cache manually

点点圈 提交于 2019-11-28 03:43:10
问题 I am trying to manually add lucene jar file to my local ivy repository. I have other apache jars so under the existing folder .ivy2\cache\apache.org\ I've created a folder called lucene and inside it a folder called jars. I then placed the jar named lucene-3.0.3.jar in the jars folder. Next step I've created the following ivy-3.0.3.xml in the lucene folder: <?xml version="1.0" encoding="UTF-8"?> <ivy-module version="1.0"> <info organisation="apache.org" module="lucene" revision="3.0.3" status

Simplest Ivy code to programmatically retrieve dependency from Maven Central

时间秒杀一切 提交于 2019-11-28 03:38:17
问题 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. 回答1: The simplest way to retrieve an artifact (and it's dependencies) is to use ivy from the command-line java -jar ivy.jar -dependency commons-logging commons-logging 1.1