ivy

How to avoid copying dependencies with Ivy

≯℡__Kan透↙ 提交于 2019-11-26 17:59:19
I'm looking into using Ivy to manage dependencies but wow - that thing really likes to make multiple copies of jars! It spreads like the ivy in my back yard and is just as undesirable! Is it possible to have Ivy simply define a classpath (for a specified profile) that references the resolved dependencies so my javac can reference them directly in the ivy repository (or cache?). I've read the reference docs buy only see the option to set up symbolic links to the repository cache. I guess this will suffice, but it seems like a waste. Also, I'm not sure that a "war" task can build the war from

How to override the location of Ivy's Cache?

陌路散爱 提交于 2019-11-26 17:45:12
问题 I am using Ivy as part of my continuous integration build system, but I need to override the default location that Ivy's local cache area is. 回答1: Something like this in ivysettings.xml : <ivysettings> <caches defaultCacheDir="/path/to/my/cache/dir"/> </ivysettings> See documentation at http://ant.apache.org/ivy/history/latest-milestone/settings/caches.html 回答2: I'm use Jenkins as CI build system, and create $HOME/.ivy2/ivysettings.xml: <ivysettings> <properties environment="env" /> <caches

Issues using ivy:publish task

一笑奈何 提交于 2019-11-26 17:16:08
问题 I'm trying to use ivy:publish to publish a jar that I've built to the .ivy repository, but I'm getting an error. I'm pretty sure I'm not using it correctly, so I was hoping someone could point me in the right direction. The project structure is something like this: root--| |--src |--build | | | |--someorganisation-commonlib-1.0.0.jar | |--ivy.xml |--build.xml The build.xml looks something like this: <target name="publish"> <ivy-publish organisation="someorganisation" resolver="local" module=

Resolving SNAPSHOT dependencies with timestamps from Ivy

拟墨画扇 提交于 2019-11-26 16:56:11
问题 I am attempting to resolve timestamped SNAPSHOT dependencies with Ivy. The environment is Ant + Ivy 1.2.0 + Archiva. Archiva itself is populated from Maven2 builds. Ivy is only used to resolve dependencies (from a single, non Maven2 project). How can Ivy be configured to correctly resolve timestamped artifacts from an Archiva or m2 repository? For reference my current configuration is: ivysettings.xml looks similar to: <ivysettings> <settings defaultResolver="archiva-chain"/> <resolvers>

java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet error

橙三吉。 提交于 2019-11-26 16:47:30
问题 Not sure why am I getting this error. Lots of similar questions here but none have worked for me till now. My ivy file is <ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"> <info organisation="" module="knoxWeb" status="integration"> </info> <dependencies> <dependency org="org.springframework" name="spring-core" rev="4.0.3.RELEASE"/> <dependency org="org.springframework" name="spring

Where do I put my credentials when using Ivy and a private company repository?

拜拜、爱过 提交于 2019-11-26 16:05:13
问题 I'm using Ant + Ivy, and my company has recently set up a Nexus server for our own private libraries. Ivy can get dependencies from the Nexus server by using a ibilio resolver and m2compatible=true, but I have to put my credentials in a ivysettings.xml file. How are different developers supposed to store their credentials? Is the ivysettings.xml file not supposed to be commited in vcs? I really don't want to store my password in plain text. 回答1: Use a settings file with properties controlling

good ivy tutorial for local repository? [closed]

霸气de小男生 提交于 2019-11-26 15:47:16
Can anyone point me at a good tutorial for making & using a local repository with Ivy? (Please don't point me at the Ivy docs, the tutorials are rather confusing) I need to make a local repository to include .jar files that aren't necessarily available through the public maven repositories. Creating a local ivy repository is straight forward, maven is not required. Here's an example of publishing some text files using ivy as a standalone program. I have 3 files I want to publish: src/English.txt src/Spanish.txt src/Irish.txt The ivy file src/ivy.xml details the name of the module and a list of

How to configure Ivy cache directory per-user or system-wide?

我的未来我决定 提交于 2019-11-26 15:27:54
问题 I am using SBT as my build tool for building a Scala project. My problem is, I can't configure SBT to download dependencies to my user home directory. Therefore I am looking for a per-user or even better a system-wide setting to tell SBT to put the Ivy cache directory somewhere else. With maven there is the per-user settings.xml that can be used to configure the local repository. I have read question How to override the location of Ivy’s Cache? and it's answers, but it seems it only describes

Convert ivy.xml to pom.xml

时光毁灭记忆、已成空白 提交于 2019-11-26 15:26:34
I have a ivy.xml - https://gist.github.com/1898060 I also have the jar file related to this ivy.xml. What i need is a mechanism to import this project to my maven repo and use it in my maven project. SO basically if i am able to convert the ivy.xml to pom.xml , i might be able to get it work. Is there some mechanism through which i can achieve this. I am looking for something like a maven plugin to accomplish this task. I know that there are ways we can edit the ivy.xml and build.xml to achieve this but then i dont want to do it , as the project is in a private repo. What you really need to do

Class not found with Ant, Ivy and JUnit - error in build.xml?

久未见 提交于 2019-11-26 14:45:43
I am trying to get a simple(?) test project working with Ant, Ivy and JUnit. The basic idea is that Ivy will download junit.jar and then Ant will use it. Note that the junit jar is on the classpath because otherwise (without the classpath element in the junit task) I see "The <classpath> for <junit> must include junit.jar if not in Ant's own classpath". Also, the class given below (junit.framework.TestListener) is in junit-4.8.2.jar. However, when I try ant test on the following I see: test: BUILD FAILED /home/andrew/project/guice/hg/build.xml:33: java.lang.NoClassDefFoundError: junit