ivy

Ignore sources jar in Ivy retrieve

岁酱吖の 提交于 2019-12-03 11:13:01
I would like to retrieve ONLY the library jar when I make use of a dependency entry in my ivy.xml for Red5 (or any project for that matter). No matter how I have configured it, I still get "sources" jars for dependencies. I have scoured the docs and google and have yet to find a solution that works using Ivy 2.2.0. This set of nodes in my ivy.xml seems to work the best for most libraries, but Spring ignores them. <exclude ext="txt" /> <exclude type="src" /> <exclude artifact="!sources" /> If anyone has any tips that would work, lets hear them!! Links to the source xml files http://red5

IllegalStateException: impossible to get artifacts when data has not been loaded for Guava 12.0?

房东的猫 提交于 2019-12-03 09:24:01
In a Java Play 2.1.1 app I get the following error: [myproject] $ update [info] Updating {file:/C:/path/myproject/}myproject... [info] Resolving ... [error] impossible to get artifacts when data has not been loaded. IvyNode = com.google.guava#guava;12.0 [error] (*:update) java.lang.IllegalStateException: impossible to get artifacts when data has not been loaded. IvyNode = com.google.guava#guava;12.0 [error] Total time: 230 s, completed 17.05.2013 19:16:41 Build.scala "com.google.guava" % "guava" % "14.0.1", "org.mydependency" % "mydependency" % "1.0-SNAPSHOT" changing() exclude("org.jboss

Ant target failing: Antlib or Ivy issue? [duplicate]

有些话、适合烂在心里 提交于 2019-12-03 08:24:22
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Ivy fails to resolve a dependancy, unable to find cause I'm trying to run the following build task ( initIvy ): <?xml version="1.0" encoding="UTF-8"?> <project name="myproject-build" default="package" basedir=".." xmlns:ivy="antlib:org.apache.ivy.ant"> <property file="build/build.properties"/> <property environment="env"/> <!-- Ant library path, including all of its plugins. --> <path id="ant.lib.path"> <fileset

Can I use properties in an ivy.xml file to avoid repeating version numbers of dependencies?

自闭症网瘾萝莉.ら 提交于 2019-12-03 06:51:29
问题 Here's what part of my ivy.xml looks like right now: <dependency org="org.springframework" name="org.springframework.core" rev="3.0.2.RELEASE" /> <dependency org="org.springframework" name="org.springframework.context" rev="3.0.2.RELEASE" /> <dependency org="org.springframework" name="org.springframework.jdbc" rev="3.0.2.RELEASE" /> <dependency org="org.springframework" name="org.springframework.beans" rev="3.0.2.RELEASE" /> <dependency org="org.springframework" name="org.springframework.jms"

How to search public Maven/Ivy repositories for a particular class?

一曲冷凌霜 提交于 2019-12-03 06:23:19
问题 There are web sites like http://mvnrepository.com/ letting to search for an "artifact" and giving a definition I can add to my project for a library to be downloaded automatically from a public repository. But this particular example (mvnrepository.com) (the only working I know actually) is by-definition limited to "search by group, artifact or description" while I would like to search by a class full name. For example I'd like to enter org.apache.commons.lang.NotImplementedException to get

Understanding the Eclipse classpath declarations

此生再无相见时 提交于 2019-12-03 06:17:30
I'm trying to understand the Eclipse classpath file, in particular, I want to know this: How is the JRE using it (i.e. is the JVM reading this xml file directly, or is eclipse somehow feeding it into its internal compiler)? How are the complex entries (like the ivy path below) parsed and incorporated into the JVM ClassLoader when I run my classes from my IDE? Context: I have a strange bug which is that eclipse is using the "wrong" version of a class, whereas my ivy / ant build is using the correct version, and I thus want to tool Eclipse to better mimick the classloader used in my pure build.

How can I best share Ant targets between projects?

若如初见. 提交于 2019-12-03 05:53:24
Is there a well-established way to share Ant targets between projects? I have a solution currently, but it's a bit inelegant. Here's what I'm doing so far. I've got a file called ivy-tasks.xml hosted on a server on our network. This file contains, among other targets, boilerplate tasks for managing project dependencies with Ivy . For example: <project name="ant-ivy-tasks" default="init-ivy" xmlns:ivy="antlib:org.apache.ivy.ant"> ... <target name="ivy-download" unless="skip.ivy.download"> <mkdir dir="${ivy.jar.dir}"/> <echo message="Installing ivy..."/> <get src="http://repo1.maven.org/maven2

How does ivy:publish work?

自闭症网瘾萝莉.ら 提交于 2019-12-03 04:52:14
问题 I'm completely at loss how the ant task ivy:publish is supposed to work. I would expect that I do my normal build, which creates a bunch of jar files, then I would push those jars to the (local) repository. How can I specify from where to retrieve the built jars, and how would those end up in the repository? Update: <target name="publish-local" description="--> Publish Local"> <ivy:retrieve /> <ivy:publish resolver="local" pubrevision="${release.version}" status="release" update="true"

Echoing out ant fileset to screen for Debugging

左心房为你撑大大i 提交于 2019-12-03 04:43:40
问题 I have this: <ivy:buildlist reference="build-path"> <fileset dir="${root.dir}"> <include name="*/build.xml" /> <include name="controllers/*/build.xml" /> </fileset> </ivy:buildlist> <subant buildpathref="build-path"> <target name="jar.all" /> <target name="publish-local" /> </subant> I want to echo out everything that is in the "build-path" reference (for debugging some things). I have tried: <echo>${build-path}</echo> but it just echos that exact text "${build-path}" 回答1: You can use the

Ivy via Nexus proxy

隐身守侯 提交于 2019-12-03 04:32:59
问题 does anyone knows how do I specify in Ivy something like mirror/mirrorOf in Maven? I'm working with a local Maven proxy (Nexus) and need the tool to specify which of the parent repositories should Nexus proxy be accessing. In Maven I do simply: <mirrors> <mirror> <id>central-mirror</id> <mirrorOf>central</mirrorOf> <url>http://localhost:8081/content/repositories/central</url> </mirror> </mirrors> but I can't find this kind of option in Ivy. 回答1: I don't think such an option exists directly.