ivy

Publish SNAPSHOT artifacts to Maven using IVY - what's the magic?

泄露秘密 提交于 2019-11-28 01:25:36
问题 We have a slight convoluted situation... For the most part we've been using IVY and ANT to manage our builds and dependencies. Now the company is moving towards using Maven. We have a set of projects called common libraries which are used by several of the core products. Common libraries use IVY and are published to an IVY repository. We also need to make common libraries available for our new Maven projects. So when common libraries get built and published, I've modified the script to

Ivy Custom Resolvers for Git or TFS

为君一笑 提交于 2019-11-28 01:02:09
问题 I'm fairly new to Ivy, so perhaps there's a straight forward way that I'm not able to find in the documentation or what I'm looking for is not possible, but here goes. I want to be able to specify dependencies where the source code is located on local and/or remote servers which use different protocols. Specifically, I have some project dependencies that are stored on a local network TFS server and additional project dependencies stored on a remote Git server (more precisely www.github.com ).

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

眉间皱痕 提交于 2019-11-28 00:59:22
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 commons-el/commons-el/jars/commons-el-1.0.jar org.richfaces.ui/richfaces-ui/jars/richfaces-ui-3.3.3.Final

using IVY dependencies manager programmatically

只谈情不闲聊 提交于 2019-11-28 00:16:54
i need help using IVY as dependencies manager my application need to load plug-ins at RUN-TIME means while the core application is running ,user can request for a new plug-in and install them , i wish to manage all installed plug-ins using the core application DB. i want to get a pom from my plug-ins server (or some other descriptor), and ask IVY to tell me what are the dependencies OR let IVY install the plug-in and dependencies , based on the current state of my application. ( what do i have right now , 1.jar's used by core application 2.jar's used by current installed plug-ins) i wish for

How does ivy:publish use the [classifier] attribute

試著忘記壹切 提交于 2019-11-27 22:22:54
问题 in ivy:publisher the default deliverivypattern is ${ivy.distrib.dir}/[type]s/[artifact]-[revision](-[classifier]).[ext] I try to set classifier in my ivy.xml under by adding attribute e:classifier="" to the element. But the [classifier] does not get set? When ivy:publish runs in my build.xml file it appears to be empty and thereby not included in the file name pattern. 回答1: I think I've figured out your problem. Just to be clear it is the configured resolver that determines the repository

Unresolved dependency SBT 0.13.0 after update

淺唱寂寞╮ 提交于 2019-11-27 19:28:53
Please have a look on the comments to be up to date. Update SBT to 0.13.0: I have a couple of projects written with scala 2.10.2 and build with sbt 0.12.4. As my OS is Ubuntu I used the SBT.deb package for installation of sbt 0.12.4. Everything fine. I built my projects with sbt. Yesterday I wanted to update sbt to version 0.13.0. I downloaded and installed the new .deb package. The projects configuration has not been changed. The failure: When runnging SBT after the update I get this failure: $ sbt Loading /usr/share/sbt/bin/sbt-launch-lib.bash Getting org.scala-sbt sbt 0.13.0 ... :: problems

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

坚强是说给别人听的谎言 提交于 2019-11-27 17:55:39
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> joelittlejohn 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 classpath) as one giant set, then lets you select a subset of those classes to bundle into a jar.

Using a custom repository with Apache Ivy, no resolver found

有些话、适合烂在心里 提交于 2019-11-27 17:19:59
问题 It seems that Apache ivy downloads artifacts only from http://mvnrepository.com/ and few other places, but all the jars are outdated there. So I am trying to add custom repository for Ivy. I am using repository Ivy RoundUp : http://code.google.com/p/ivyroundup/ This is my configuration, but getting error: build.xml: <target name="update" depends="init-ivy" description="Download project dependencies"> <!-- edited for brevity --> <ivy:settings file="ivysettings.xml" /> <ivy:retrieve pattern=

How can I retrieve snapshot dependencies from Nexus using SBT?

时光毁灭记忆、已成空白 提交于 2019-11-27 17:11:52
问题 I have a maven2 repository from which I'm trying to fetch an snapshot artifact with an appended timestamp. I'm (unsurprisingly) able to retrieve it fine when building with maven2 but when building with simple-build-tool (sbt), much preferred by me, I can't pull it down. I can see from this question about snapshots in Ivy that it is possible to configure Ivy to get snapshot artifacts but I don't know how to tell sbt to do it. The relevant bits of my current configuration: val snapshotsName =

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

纵饮孤独 提交于 2019-11-27 16:37:05
问题 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