ivy

Trouble getting Hibernate Core and Hibernate Annotations using Apache Ivy (but it's also Maven2 related.)

女生的网名这么多〃 提交于 2019-11-30 11:45:27
It's a long one! ;-) There are a lot of copy pasted text in this question which makes it look complicated. And to be honest, it's a lot of information! However to an experienced person a lot of it might be unnecessary and easy to skim over. In its essence I'm only wondering why my basic Hibernate Core + Hibernate Annotations test project doesn't work. I suspect missing dependencies, but I'm using Apache Ivy which I thought would get transitive dependencies automatically from the Maven2 repository ibiblio, but there clearly are dependencies missing (see headline lower in the post about

How to resolve external packages with spark-shell when behind a corporate proxy?

和自甴很熟 提交于 2019-11-30 09:02:43
I would like to run spark-shell with a external package behind a corporate proxy. Unfortunately external packages passed via --packages option are not resolved. E.g., when running bin/spark-shell --packages datastax:spark-cassandra-connector:1.5.0-s_2.10 the cassandra connector package is not resolved (stuck at last line): Ivy Default Cache set to: /root/.ivy2/cache The jars for the packages stored in: /root/.ivy2/jars :: loading settings :: url = jar:file:/opt/spark/lib/spark-assembly-1.6.1-hadoop2.6.0.jar!/org/apache/ivy/core/settings/ivysettings.xml datastax#spark-cassandra-connector added

Resolving Apache Ivy dependencies when offline/disconnected?

放肆的年华 提交于 2019-11-30 08:49:29
How can I get Ivy to resolve dependencies (including dependencies with changing="true" ) from the local cache when offline/disconnected? I'm working on a Java-based open-source project that uses Apache Ivy to resolve and download 3rd party dependencies. The project's build.xml has an ant target named resolve that downloads Ivy (if needed) and then uses Ivy to retrieve the required jars. Everything works great when online. However, without Internet access, ant resolve fails even if the required jars are in the local Ivy cache ( ~/.ivy2/cache ). It appears that Ivy is trying to connect to the

How to attach sources to SBT managed dependencies in Scala IDE?

守給你的承諾、 提交于 2019-11-30 08:09:48
I'm using Scala IDE 2.0.1 and SBT 0.11.2 to start with Akka 2.0.1. My build.sbt looks like this: name := "akka" version := "0.1" scalaVersion := "2.9.2" resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/" libraryDependencies += "com.typesafe.akka" % "akka-actor" % "2.0.1" As you can see, there's nothing spectacular. Now how can I tell Eclipse to use the artifact with the sources classifier for the akka-actor library? In SBT, I can use update-classifiers to download sources and Javadocs to the Ivy repository, but even if I do this before running the eclipse

How are snapshot and release repositories used differently?

亡梦爱人 提交于 2019-11-30 04:58:56
I understand that during development build artifacts are placed in the snapshot repository. When a product needs to go to QA for testing, do teams pull from the snapshot repository? Or do they do a full build, deploy to the release repository, and then give it to QA from there? Also, if my snapshots repository holds all the build artifacts from each build, how is this commonly cleaned up? I could see keeping the last 5 builds from the build server, but not every one. I'm using Artifactory if it helps. Mark O'Connor Opinions differ, here'e my approach: Snapshots are for Dev Typically used for

Recommended way to force a specific version of SBT dependency

我们两清 提交于 2019-11-30 04:44:43
A dependency bar depends on foo 1.2.3, but that version of foo has a bug and I need to use version 1.2.2. I can do that with force() . libraryDependencies += "foo" %% "foo" % "1.2.2" force() That method is not recommended by the docs : Forcing a revision (Not recommended) Note: Forcing can create logical inconsistencies so it’s no longer recommended. Does this mean SBT has a different, better way than force() to use a specific version of a dependency? If so, what? Or am I to infer from the documentation that this entire problem is one that I'm recommended not to have? Giovanni Caporaletti you

Working offline with SBT and SNAPSHOT dependencies

青春壹個敷衍的年華 提交于 2019-11-30 03:15:02
I have never been able to work offline with SBT on any of my projects. Now I'm in the middle of a move and my wardrobe-server hosting nexus is offline. So running say: sbt "set offline := true" run I get among other missing deps: [error] unresolved dependency: se.hedefalk#lift-utils_3.0_2.10;0.2-SNAPSHOT: not found for the dependency declared as: "se.hedefalk" %% ("lift-utils_"+liftEdition) % ("0.2-SNAPSHOT"), But I do have the dependency in my ivy cache: $ ll ~/.ivy2/cache/se.hedefalk/lift-utils_3.0_2.10/ total 32 drwxr-xr-x 8 viktor staff 272B Mar 14 11:36 ./ drwxr-xr-x 5 viktor staff 170B

How to exclude commons logging dependency of spring with ivy?

北慕城南 提交于 2019-11-30 02:35:52
问题 I have a project build with ant using ivy for dependency management. I have no ivysetting file, but an ivy.xml with the following dependency (I want to use spring with slf4j instead of commons logging): <configurations> <conf name="compile" /> <conf name="runtime" extends="compile"/> </configurations> <dependencies> <dependency org="org.springframework" name="spring-webmvc" rev="3.0.5.RELEASE" conf="compile->default"> <exclude org="commons-logging" name="commons-logging"/> </dependency>

Ivy: Forcing local snapshot for dependency

不羁的心 提交于 2019-11-29 22:48:26
问题 I have a Project A which depends on Project B; both are internal projects in active development. Say the latest Project A release is 1.1.2 which depends on Project B 1.1.1. Now we are developing Project A 1.2.0 which depends on the Project B 1.2.0 also in development. <dependency org="my.org" name="projectB" rev="1.2.0" transitive="true" conf="..." changing="true"/> New intergration builds for Project B 1.2.0 are pushed by the CI server in the common local repository, so thanks to "changing"

Maven or Ivy? Which one is better with a system already in production? And the other differences? [closed]

感情迁移 提交于 2019-11-29 22:05:36
I know that this is a complicated question, but I would like know which one is better in the case of a system that it's already in production, with a lot of bugs and really bad design at all. A really mess. Actually, I'm asking this because I'm already converting this project to Maven and I'm facing A LOT of problems. I needed to adjust the folder structure, separate a terrible framework made at the company from the project (it was converted into a jar lib), fix a lot of details that broke the project all the time, configure the POM.xml to make everything that Ant was already doing and