ivy

How to subtract ivy dependency sets

为君一笑 提交于 2019-12-20 01:57:11
问题 My goal is to demarcate project transitive dependencies into several not crossing sets: system (jars already present in j2ee container; listed manually with explicit fixed versions) provided (jars to be copied to j2ee container; listed manually) ear (jars to be packed inside ear/lib, the rest) My current solution listed below has some shortcomings: have to exclude system and provided libraries from ear conf one by one new third-party transitive deps that weren't already explicitly excluded

http authentication between using ant/ivy retrieving dependency from nexus?

最后都变了- 提交于 2019-12-19 08:19:03
问题 I have an issue when attempting to retrieve a dependency from a nexus repository when running ant with ivy. the dependency is never resolved, when running with verbose output the suspect line is '[ivy:retrieve] authentication: k='@' c='null'. I have tried many different variations of providing the credentials configuration to ivy, but without changing the result. Stranger still the repo hostname appears to come from the resolver, not from the provided credentials. Versions - ANT@1.7.1, IVY@2

http authentication between using ant/ivy retrieving dependency from nexus?

不问归期 提交于 2019-12-19 08:18:42
问题 I have an issue when attempting to retrieve a dependency from a nexus repository when running ant with ivy. the dependency is never resolved, when running with verbose output the suspect line is '[ivy:retrieve] authentication: k='@' c='null'. I have tried many different variations of providing the credentials configuration to ivy, but without changing the result. Stranger still the repo hostname appears to come from the resolver, not from the provided credentials. Versions - ANT@1.7.1, IVY@2

Ivy: Fetching Javadocs and Sources

拟墨画扇 提交于 2019-12-19 02:39:10
问题 I'm fairly new to Ivy, but have gotten it to work with jar dependencies. The problem is trying to set it up, so I can fetch javadocs and sources independently of jars. I have a simple test project, but no matter what I'm doing, I'm fetching the jar with the class files in it. I have the following ivy.xml file: <ivy-module version="1.0"> <info organisation="com.vegicorp" module="test" revision="1.0" status="release"/> <configurations> <conf name="default" visibility="public" extends="runtime

Working offline with SBT and SNAPSHOT dependencies

让人想犯罪 __ 提交于 2019-12-18 11:31:24
问题 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

Can someone explain the ivy.xml dependency's conf attribute?

只谈情不闲聊 提交于 2019-12-18 09:59:21
问题 I can't find any thorough explanation of the Ivy dependency tag's conf attribute: <dependency org="hibernate" name="hibernate" rev="3.1.3" conf="runtime, standalone -> runtime(*)"/> See that conf attribute? I can't find any explanation (that I can understand) about the right hand side of the -> symbol. PLEASE keep in mind I don't know the first thing about Maven so please explain this attribute with that consideration. Yes, I've already looked at this: http://ant.apache.org/ivy/history/latest

A way to control dependencies ranges for upstream dependencies using Ivy?

耗尽温柔 提交于 2019-12-18 09:40:31
问题 I am using Ivy to assemble a composite application from internally developed and third party libraries. Ivy is used to manage dependencies for building the above libraries. For each library there are multiple compatible versions that are available and that may be used within the assembled application. The question is how can I direct ivy NOT to choose the latest version of a dependency. Let me illustrate with the following example: A[3]:B[2.5.+],C[1.3.+] meaning that package A depends on the

Ivy makepom marks all dependencies as optional despite mapping

安稳与你 提交于 2019-12-18 09:06:14
问题 Given: <dependency org="foo" name="bar" /> and no configurations, following ant snippet: <echo>${ivy.configuration}</echo> <ivy:makepom ivyfile="${build.dir}/ivy.xml" pomfile="${build.dir}/${ivy.module}.pom"> <mapping conf="default" scope="compile" /> </ivy:makepom> Produces pom with with optional dependency on foo.bar and prints "default". If I change mapping to conf="*" then it works but it is obviously suboptimal . Is it possible to map unspecified default configuration or do I need to set

Publishing Ivy SNAPSHOTS with Maven metadata

流过昼夜 提交于 2019-12-18 04:23:34
问题 I have an Ivy project that publishes its artifacts to a Nexus Maven repository. I then need other Maven projects to be able to use those jars as dependencies. I have been able to get Ivy to create and upload the pom.xml along with the jars, which is working fine. The problem is, when I use Ivy to publish a new SNAPSHOT version - none of the Maven projects will retrieve the new snapshot dependency, even if I do: mvn clean install -U I have noticed that Ivy does not publish a maven-metadata.xml

Split retrieved artifacts in two separate lib directories

倾然丶 夕夏残阳落幕 提交于 2019-12-18 04:16:57
问题 In my web application, there are two separate lib directories: /lib , and /web/webroot/WEB-INF/lib . The idea behind it is that libraries in the latter one are used by front-end code only, and the first one by both the front-end and the business logic code. There is a class loader in place which lets the business logic code not see the jars in /web/webroot/WEB-INF/lib. How can I tell ivy that certain dependencies should go to the second directory while all others go to first one? It's not