ivy

How to configure gradle to use a local repository only for certain dependency groups?

我们两清 提交于 2019-12-04 16:09:46
问题 Working off the gradle dependency docs, we have a build.gradle with snippets like this. repositories { mavenCentral() ivy { name = 'localRepo' artifactPattern "http://localRepo.com/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" } } dependencies { compile group: 'localRepo', name: 'my-private-library', version: '2.5' } This setup does download everything correctly, but I would like to tweak it so that things in group localRepo are only attempted to be pulled from the ivy

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

混江龙づ霸主 提交于 2019-12-04 14:32:33
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. Use ivy configurations to create and manage custom groups of dependencies. Example ivy.xml <ivy-module version="2.0"> <info organisation="com.myspotontheweb" module="demo"/> <configurations> <conf name="group1"

Custom Plugin transitive Dependency resolution in BuildConfig.groovy Grails 2.2.3

可紊 提交于 2019-12-04 14:32:18
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 grails plugin for internal use at my University. I'd really like it if putting the plugin in your

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

人走茶凉 提交于 2019-12-04 11:49:31
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 Applications, however, it seems that WTP (the Eclipse Java EE module) does not deploy the folders denoted by

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

一世执手 提交于 2019-12-04 11:09:49
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 here). The [artifact] part of the URLs seems to always be replaced with name . Is there a way to

Can ivy or ivyDE add related jars into JAVA build path library automatically in Eclipse?

一笑奈何 提交于 2019-12-04 07:53:55
For example, when I open a well developed opensource project (like lucene) into Eclipse (with both ant build.xml and ivy ivysetting.xml), I can run ant with build.xml to build the whole project successfully. However, the project is full of errors in a mess of .java classes. This is caused by unlinking to the external jars. These jars are already download by ivy and stored in {user}/.ivy2/cache/. Also, when I manually put each of these jars into the build path of this project, the errors are gone. Can ivy or ivyDE or some other tools put the jars into the JAVA build path automatically? Here is

How to set up a local proxy repository for SBT?

六眼飞鱼酱① 提交于 2019-12-04 06:54:27
I have near zero knowledge of Maven/Ivy but know that these technologies are behind SBT's ability to download and manage libraries automatically. When I was trying to generate an IntelliJ Idea project from SBT it (Idea or the generator plug-in) has failed to find cached libraries stored in the common Ivy 2 cache. I've solved the problem by setting up the SBT project to use the old scheme storing downloaded libraries under the project directory. Another project of mine uses old SBT version which does it this way by default. In both cases I use clean command to remove library binaries before

how to fix configuration not found in guava error

不羁的心 提交于 2019-12-04 06:15:25
问题 I have tried to resolve dependencies from local filesystem; to do so, I have wrote ivy.xml, ivyconf.xml and build.xml. However, my scripts donot work and couldnot resolve dependencies i.e. couldnot find jar files. What is the problem behind it? And, how can I solve it? error Error [ivy:resolve] com.google.guava#guava;17.0: configuration not found in com.google.guava#guava;17.0: 'public'. It was required from .. runtime project hierarchy project | - - src | - - lib | - - guava.jar | - - conf |

ivy:install from maven with classifiers

半城伤御伤魂 提交于 2019-12-04 05:33:31
I'm trying to ivy:install jogl and gluegen from maven to my local depository. I cannot get the native dependencies to install correctly. My ivysettings is <ivysettings> <settings defaultResolver="central" defaultConflictManager="all" /> <caches defaultCacheDir="${ivy.cache.dir}" artifactPattern="[organisation]/[module]/[type]s/[artifact]-[revision](-[classifier]).[ext]" /> <resolvers> <ibiblio name="central" m2compatible="true" pattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]" /> <filesystem name="depository"> <ivy pattern="${dest.repo.dir}/[organisation]/

Playframework [1.2.7] dependencies failing

会有一股神秘感。 提交于 2019-12-04 05:31:50
问题 We're experiencing a problem with play frameworks dependency management which was working fine a couple of days ago. We haven't made any configuration changes or changes to the dependency file but are getting the following errors on both our build server and locally (both located on different networks and ISP's). :: problems summary :: :::: WARNINGS module not found: vsvr1#minifymod;1.0.9 ==== vsvr1: tried -- artifact vsvr1#minifymod;1.0.9!minifymod.jar: https://github.com/maklemenz/minifymod