ivy

Why sbt runs dependency resolution every time after clean?

久未见 提交于 2019-12-17 22:34:24
问题 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 ?

can I turn off the .ivy cache all together?

二次信任 提交于 2019-12-17 20:14:53
问题 Is there a way to tell ant/ivy to not use a local $HOME/.ivy2 cache? 回答1: 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

java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z

橙三吉。 提交于 2019-12-17 16:44:37
问题 I am getting this error: java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z These are the jars in my classpath: com.sun.faces/jsf-api/jars/jsf-api-2.0.0.jar com.sun.faces/jsf-impl/jars/jsf-impl-2.0.0.jar org.apache.myfaces.orchestra/myfaces-orchestra-core20/jars/myfaces-orchestra-core20-1.5-SNAPSHOT.jar commons-lang/commons-lang/jars/commons-lang-2.1.jar commons-logging/commons-logging/jars/commons-logging-1.1.1.jar org.springframework/spring/jars/spring-2.5.6.jar

Proxy settings with ivy

牧云@^-^@ 提交于 2019-12-17 15:46:13
问题 I have an issue where in I have defined dependancies in ivy.xml on our internal corporate svn. I am able to access this svn site without any proxy task in ant. While my dependencies resides on ibiblio, that’s something outside our corporate, and needs proxy inorder to download something. I am facing problem using ivy here. I have following in build.xml <target name="proxy"> <property name="proxy.host" value="xyz.proxy.net"/> <property name="proxy.port" value="8443"/> <setproxy proxyhost="$

What is the meaning of type “bundle” in a maven dependency?

喜夏-厌秋 提交于 2019-12-17 15:24:21
问题 What is the meaning of "bundle" e.g in this dependency: <dependency> <groupId>org.apache.abdera</groupId> <artifactId>abdera-core</artifactId> <version>1.1.2</version> <type>bundle</type> <scope>compile</scope> </dependency> 回答1: This kind of artifact is an OSGi bundle, typically produced using the maven-bundle-plugin which is part of Apache Felix. The plugin treats all the classes available to your module (the module's own classes, classes provided by dependencies, other classes on the

Ivy fails to resolve a dependency, unable to find cause

£可爱£侵袭症+ 提交于 2019-12-17 06:35:19
问题 While using ivy:retrieve , it fails to resolve the dependency that should be downloaded. The output looks like this: Buildfile: C:\Users\Simon\workspace\apollo\build.xml init: resolve: BUILD FAILED C:\Users\Simon\workspace\apollo\build.xml:42: Problem: failed to create task or type antlib:org.apache.ivy.ant:retrieve Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any <presetdef>/<macrodef> declarations

Gradle - getting the latest release version of a dependency

不想你离开。 提交于 2019-12-17 04:43:06
问题 What would be the easiest way to tell Gradle the following: Retrieve 'junit' dependency and take its latest 'release' version. Managing Maven and Ivy repositories is sort of new to me. I tried the following steps and they result in Could not resolve dependency ... error: Write compile "junit:junit:latest.release" with repositories set to only mavenCentral() (however, it works if I say "junit:junit:4.10"). Write compile "junit:junit:latest.release" with repository set the following way: ivy {

How to avoid copying dependencies with Ivy

。_饼干妹妹 提交于 2019-12-17 04:08:31
问题 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

How to avoid copying dependencies with Ivy

删除回忆录丶 提交于 2019-12-17 04:08:23
问题 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

Use public maven repository with ivy

偶尔善良 提交于 2019-12-17 03:35:59
问题 I have an ivy.xml containing <dependencies> <dependency org="commons-lang" name="commons-lang" rev="2.4"/> <dependency org="foo-bar" name="superwidgets" rev="1.5"/> </dependencies> The whole superwidget stuff is hosted in a maven repository at http://example.com/m2/. The ivy documentation mentions resolvers, but it seems to assume an ivy repository. How can I add a single unofficial maven repository to my ivy settings to be used only by a single module? (Or put another way, what corresponds