ivy

ivy simple shared repository

﹥>﹥吖頭↗ 提交于 2019-11-27 15:54:21
I am trying to compile all sub projects of one big project at my company into many jars with managed dependencies, so that not everybody who works at one project only needs to download the latest jars from a shared repository. ivy seems to be the solution for our problem, because ivy says that it integrates with ant (out build system) very well. But I cant get through the tutorials, they are all somehow more confusing than helpful. All I want to achieve for the beginning is to have two small Projects. The first one has one class with one method, the second one is just calling this method. The

How do I solve Multiple artifacts of the module X are retrieved to the same file in Apache Ivy?

≯℡__Kan透↙ 提交于 2019-11-27 15:48:05
问题 I was using ANT to deploy my stuff to Tomcat. But I had trouble with missing dependencies and I wanted to add Ivy, cause it was reccomended. Now I added this to my build.xml file: <!-- Ivy settings start--> <condition property="ivy.home" value="${env.IVY_HOME}"> <isset property="env.IVY_HOME" /> </condition> <target name="download-ivy" unless="offline" description="Download Ivy"> <mkdir dir="${ivy.jar.dir}"/> <!-- download Ivy from web site so that it can be used even without any special

ivysettings.xml: add local maven path

三世轮回 提交于 2019-11-27 15:44:46
问题 How to add a local path (not URL) to ivysettings.xml ? I need to add my Maven local repository (/Users/me/.m2/repository to it. Thanks 回答1: Try the following ivysettings.xml file: <ivysettings> <settings defaultResolver="default"/> <property name="m2-pattern" value="${user.home}/.m2/repository/[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]" override="false" /> <resolvers> <chain name="default"> <filesystem name="local-maven2" m2compatible="true" > <artifact

What's wrong with this Ivy changingPattern / SNAPSHOT configuration?

谁说胖子不能爱 提交于 2019-11-27 14:33:16
I can't get Ivy to update cache when snapshot dependencies are updated. The resolver (to has the following settings: <url name="xxx" m2compatible="false" checkmodified="true" changingMatcher="regexp" changingPattern=".*-SNAPSHOT.*"> An example artifact filename (in Artifactory) is: my-jar-1.999-SNAPSHOT.jar A detailed Ant log of resolve includes: [NOT REQUIRED] com.myorg#my-module;1.999-SNAPSHOT!my-jar.jar There is no POM on the artifact. The resolver is underneath a chain resolver; they both have all the relevant attributes set. I have read https://issues.apache.org/jira/browse/IVY-938 and

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

一个人想着一个人 提交于 2019-11-27 14:31:22
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-context" rev="4.0.3.RELEASE"/> <dependency org="org.springframework" name="spring-web" rev="4.0.3.RELEASE"/>

How to attach source code of libraries downloaded with ivy

让人想犯罪 __ 提交于 2019-11-27 12:59:57
问题 I use ivy with the ivy eclipse plugin to download dependencies. Works great. But how can I attach the source code for those libraries, in order to step into these libraries? 回答1: Have you tried attaching the source configurations? <dependencies defaultconfmapping="*->default,sources"> 回答2: There is an ant task that will modify the .classpath file to reference the source attachments. 回答3: I use the IvyDE plugin, and it seems to automatically download and attach sources. I'm using Eclipse

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

旧巷老猫 提交于 2019-11-27 12:29: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. Mark O'Connor Use a settings file with properties controlling the Nexus credentials: <ivysettings> <property name="repo.host" value="default.mycompany.com"

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

為{幸葍}努か 提交于 2019-11-27 11:14:27
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 how to configure the setting on a per project basis. If there is no alternative I would go for a per

How to override the location of Ivy's Cache?

旧城冷巷雨未停 提交于 2019-11-27 08:37:01
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. skaffman 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 I'm use Jenkins as CI build system, and create $HOME/.ivy2/ivysettings.xml: <ivysettings> <properties environment="env" /> <caches defaultCacheDir="${env.WORKSPACE}/.ivy2/cache" /> </ivysettings> This create the ivy cache dir at each

The svn client 'svnkit' is not available

守給你的承諾、 提交于 2019-11-27 08:35:34
问题 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