ivy

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

£可爱£侵袭症+ 提交于 2019-12-08 01:24:37
问题 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

ivy ssh publisher

牧云@^-^@ 提交于 2019-12-08 01:16:22
问题 I am trying to use ssh publisher to publish artifacts to a remote server through jenkins. <ssh name="ssh-publisher" host="myhost.com" user="dummy" keyFile="/home/dummy/id_rsa"> <ivy pattern="/data/refdata/local0/artifacts[organisation]/[module]/[revision]/ivy-[revision].xml"/> <artifact pattern="/data/refdata/local0/artifacts/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"/> </ssh> However when I tried to publish, I got the following error impossible to publish

SBT 0.13.1 offline

為{幸葍}努か 提交于 2019-12-07 12:44:33
问题 I'm trying to understand the use of SBT 0.13.1 offline. My goal is to bring whatever is necesary to an offline environment on a USB stick. I thought that if the ivy cache was copied then SBT could pull everything it needs out of it, but that doesn't seem to be the case. For example... I'll start by deleting the .ivy2 folder, just to be sure. Now, while online I use the following build.sbt and project/plugins.sbt files to create my eclipse project. from SBT 0.13.1 build.sbt: name :=

Programmatically retrieve Maven dependency graph

落爺英雄遲暮 提交于 2019-12-07 09:28:19
问题 Given a Maven artifact (groupId:artifactId:version), how can I programmatically query its dependencies? (I don't need actually retrieve any artifacts, just the dependency information.) Edit to add I'd like to do this outside of a Maven plug-in, and I'd like to build up a dependency graph. 回答1: If you're using a maven plugin (ie: extend AbstractMojo), you can do the following: /** * @parameter expression="${project}" */ private org.apache.maven.project.MavenProject mavenProject; List<org

Ivy Retrieve with Classifiers

流过昼夜 提交于 2019-12-07 07:55:01
问题 I have the following ivy.xml : <ivy-module version="1.0" xmlns:maven="http://maven.apache.org"> <configurations> ... </configurations> <dependencies> <dependency org="com.foo" name="fubur" rev="1.3" conf="runtime->default"/> <dependency org="com.snafu" name="barfu" rev="1.4" conf="runtime->default"> <artifact name="barfu" maven:classifier="ID_10T" type="jar" ext="jar"/> </dependency> </dependencies> </ivy-module> In my build.xml , I want to retrieve all of my jars for the war I'm building:

Add Jars to Grails Project Using Ivy

旧街凉风 提交于 2019-12-07 07:41:26
I'm following the Grails Mail tutorial: http://grails.org/A+simple+EmailerService and it mentions "Then copy two jar files into the application local lib: activations.jar and mail.jar.". Though I can do the manual copy, I was wondering if there's some way I could update my Ivy configuration file to do that pulling automatically instead. I'm not familiar enough with Ivy at this point to know how to look for repositories, etc.. First of all you need to install the ivy plugin: grails install-plugin ivy Then you can configure your ivy.xml : <ivy-module version="2.0"> <info organisation="apache"

Why the ivy.xml generated by `sbt publishLocal` has no configuration `default`?

和自甴很熟 提交于 2019-12-07 03:49:39
问题 When I run sbt publishLocal on a sbt project, and found the generated ivy.xml is like this: <?xml version="1.0" encoding="UTF-8"?> <ivy-module version="2.0" xmlns:e="http://ant.apache.org/ivy/extra"> <info organisation="com.thoughtworks" module="pact-jvm-provider-spring-mvc_2.11" revision="0.1" status="release" publication="20150225152253"> <description> pact-jvm-provider-spring-mvc </description> </info> <configurations> <conf name="compile" visibility="public" description=""/> <conf name=

resolving javadoc files with Ant and Ivy

北慕城南 提交于 2019-12-07 03:10:31
问题 I'd like Ivy to fetch both the log4j .jar and JavaDocs. Right now, I am at a dead end. When If I use this in my ivy.xml ... <dependency org="log4j" name="log4j" rev="1.2.16"/> ... then I just get the .jar file. But when using this ivysettings.xml ... <?xml version="1.0" encoding="UTF-8"?> <ivysettings> <settings defaultResolver="default" defaultConflictManager="all" /> <resolvers> <url name="default" m2compatible="true"> <artifact pattern="http://repo1.maven.org/maven2/[organisation]/[module]

How to set up an IntelliJ Idea Scala project to recognize local Ivy2 cache?

断了今生、忘了曾经 提交于 2019-12-06 19:55:23
问题 As you probablu know, new versions of SBT (as 0.11) are designed to maintain a common libraries cache in ~/.ivy2/cache instead of copying the full set of dependencies inside a project directory. But IntelliJ Idea (I use the SBT plugin to generate an Idea project) default seems to be ignoring the common cache and only see the libraries put under the project directory (so, I have to configure SBT to act this legacy way). How to fix this? There are some Ivy plugins in the Idea plugin repository,

using ant ivy in netbeans

空扰寡人 提交于 2019-12-06 19:42:30
Since I am new to Ant+Ivy this might sound very naive question but please bear with me. I recently installed Ivy plugin to work with netbeans. But I don't know what to do next? Do I have to create ivy.xml file myself ? do I have to add its reference to nbbuild.xml somewhere? if yes where? and finally how to write ivy.xml to fetch latest versions of the libraries I am using. e.g. I am using jgraph.jar, commons-codec-1.6.jar etc, Can somebody demonstrate how to write code in ivy.xml file to fetch the latest versions of these? These are available in the maven central repository , Can I connect to