ivy

How to use the ivy local repository as a maven respository

有些话、适合烂在心里 提交于 2019-12-10 18:27:40
问题 The ivy local repository is in ~/.ivy2, and I'd like to use it as my local maven respoitory. Is there any easy way like setting to do it ? 回答1: I suspect what you're trying to do is share ivy's cache, not it's local repository. Files are placed in ivy's repository by calling the publish task. Ivy has a clear storage distinction between these file types: ~/.ivy2/cache ~/.ivy2/local Maven on the other hand mixes up both file types under the following directory: ~/.m2/repository It would be a

Troubles with sbt compiling offline using org.apache.hadoop/* dependencies

ぐ巨炮叔叔 提交于 2019-12-10 17:47:34
问题 got a lot of troubles compiling offline with sbt having dependencies on org.apache.hadoop packages. A simple build.sbt: name := "Test" version := "1.0" scalaVersion := "2.10.4" libraryDependencies += "org.apache.hadoop" % "hadoop-yarn-api" % "2.2.0" works fine while online but gives following error when running offline, while the package is present in the ivy cache (under ~/ivy2/cache/org.apache.hadoop/...): [info] Loading project definition from /home/martin/Dev/S/project [info] Set current

SBT, dependencies, classpath and editors

混江龙づ霸主 提交于 2019-12-10 17:41:21
问题 I recently updated my sbt setup to version 0.11. As you may know, new SBT uses .ivy2 folder to store/cache all the retrieved jar files. I am using IntelliJ and I would like to know what is the recommended way of importing dependencies to the editor's classpath. One option is to manually visit .ivy2 folder and select the dependencies. Is there a better/easier way to doing this? 回答1: I presume you use the SBT-plugin. According to the instructions on the linked page: After each change to your

How to configure Ivy's lock strategy in Sbt

谁都会走 提交于 2019-12-10 13:07:22
问题 I need to configure Ivy lock strategy in sbt build. I tried to place externalIvySettings(baseDirectory(_ / "ivysettings.xml")) in Build.scala ivysettings.xml: <ivysettings> <settings defaultResolver="default"/> <include url="${ivy.default.settings.dir}/ivysettings-public.xml"/> <include url="${ivy.default.settings.dir}/ivysettings-shared.xml"/> <include url="${ivy.default.settings.dir}/ivysettings-local.xml"/> <include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/> <include

Ant Ivy conf specific retrieve is failing on my published jar

╄→尐↘猪︶ㄣ 提交于 2019-12-10 12:18:16
问题 Building with Ant Ivy, I'm trying to separate my jars into one configuration for 3rd party jars and another configuration for the jars I build and publish. ProjectA uses 3rd party jars and builds a jar that ProjectB depends on, but when I use Ant Ivy confs I can't get ProjectB to retrieve the ProjectA jar. When I execute the ant script for ProjectB, it builds ProjectA fine. The ProjectA build publishes a jar to the local repository. ProjectB retrieves the necessary jars from the public

Logback dependency preventing SBT running offline

…衆ロ難τιáo~ 提交于 2019-12-10 11:25:56
问题 This is a refinement of a previous question with closer attribution to the problem. I'm trying to confirm I can run my SBT project offline. I can, unless logback is one of my libraryDependencies. Why is logback triggering a problem? I've made a simple example consisting of just a build.sbt and a 'hello world' app... build.sbt with a bunch of random dependencies to prove the point: name := "testProject" version := "0.0.1" scalaVersion := "2.10.3" libraryDependencies ++= Seq( "org.apache

Resolving XSD's using Ivy

荒凉一梦 提交于 2019-12-10 09:54:39
问题 Forgive the double post but I am keen on an answer to this. I would like some advice as to the approach I am taking. I am using Ivy for dependency management and am able to download and use all my jar files no issues. I would like to also run the <schemavalidate> task in Ant and would like to use Ivy to download the xsd's and dtd's as specified, thereby eliminating the need for a network connection after the initial download and also reducing my build time. I think I have a solution but

LinkedIn:用Gradle构建Java Play框架应用

余生颓废 提交于 2019-12-10 09:20:34
在LinkedIn,我们一直在评估最好的开发框架和工具来开发伟大的产品。11年的历史中,我们使用过很多前端web框架-如 Grails 、Frontier(LinkedIn内部的web框架),最近是: Play !我们喜欢 Play ,并热情地在公司内部推行起来。于是我们用Play进行了整合和扩展。现在我们正在评估哪个构建系统(build system,下同)更好用。 这篇文章介绍了用在Play中用Gradle来支持开发,及Gradle的目前状态和它的初步特性的演化。我们希望Play社区提供更多反馈以帮助Gradle类软件的开发。能够给Sbt和Gradle开发Play应用将提供更多的自由度和多样性。 背景:代码的组织 在LinkedIn,我们用代码仓库管理公共API和服务,每个这种仓库我们给它取了个名叫 Multiproduct ,每个Multiproduct通过独立的 Ivy 来组织,默认的名称是com.linedin。LinkedIn的部分代码已经开源了,如 databus 。 用Multiproducts来组织代码的结果是,它们都是多工程的构结构,每个Multiproduct有10个或100个工程,同时每个工程又有多个 构件(artifacts,下同)。 在LinkedIn,我们的Play应用在classpath路径下有超过500个jar包

Setting ivy home directory in Ant

筅森魡賤 提交于 2019-12-09 17:04:57
问题 I would like to set the ivy.default.ivy.user.dir to something other than the default ${user.home}/.ivy2 . I can do this on the command line with ant -Divy.default.ivy.user.dir=${WORKSPACE}/IVYCACHE . But, I would like to have it set without a command line arg. I have tried setting this property in my build.xml, my common.xml and my ivysettings.xml. The strange thing is, that it seems to set the default cache to this path, but the verbose output says that there is no default setting for user

Sonar Xerces conflict Findbugs and ivy:report

扶醉桌前 提交于 2019-12-09 16:27:53
问题 I am trying to get sonar to work for a project with a quality profile that includes Findbugs rules. However when analyzing the project the sonar anttask chrashes with the following error: Caused by: java.io.IOException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found at edu.umd.cs.findbugs.filter.Filter.<init>(Filter.java:134) at edu.umd.cs.findbugs.FindBugs.configureFilter(FindBugs.java:516) at edu.umd.cs.findbugs.FindBugs2.addFilter(FindBugs2.java:374) at org.sonar.plugins