ivy

How to access Ivy directly, i.e. access dependency reports or execute Ivy commands?

元气小坏坏 提交于 2019-12-23 05:39:06
问题 SBT uses Ivy under the hood for dependencies. Ivy can generate lots of dependency reports. How can I get access to that via SBT? In general, if I want to use an Ivy command via SBT, how can I do it? Can I generate a POM from the SBT dependencies? UPDATE: My goal is to debug and manually fine tune problems, not to be part of any automated tasks UPDATE 2: To debug, I'd like to see the whole transitive dependency chain, not just the top level dependencies. 回答1: There are several options when

using ant ivy in netbeans

本秂侑毒 提交于 2019-12-23 04:05:31
问题 Since I am new to Ant+Ivy this might sound very naive question but please bear with me. I recently installed Ivy plugin to work with netbeans. But I don't know what to do next? Do I have to create ivy.xml file myself ? do I have to add its reference to nbbuild.xml somewhere? if yes where? and finally how to write ivy.xml to fetch latest versions of the libraries I am using. e.g. I am using jgraph.jar, commons-codec-1.6.jar etc, Can somebody demonstrate how to write code in ivy.xml file to

Ivy dependency as provided

廉价感情. 提交于 2019-12-23 02:43:21
问题 Problem : I need to have a lib on the eclipse classpath that should not be deployed to Tomcat. (In a maven project it would be scope provided) Explanation: I've setup a project with some Ivy dependencies and had to externalize a configuration as JNI (mail/session) in order to do it I had to put the mail-1.4.7.jar inside the Tomcat lib folder. The problem is that I have a dependency that add to my classpath the javax.mail-1.5.2.jar so I change it to: <dependency org="org.apache.logging.log4j"

how to get ivy:cachepath location without checking if dependencies downloaded

你。 提交于 2019-12-22 13:58:25
问题 I have a task in my build.xml : <target name="init" depends="init-ivy"> ... <ivy:cachepath inline="true" module="jersey-container-servlet" organisation="org.glassfish.jersey.containers" pathid="jersey.classpath" revision="2.23.2" /> ... </target> This task downloads ivy if necessary ( init-ivy does that actually) and then invokes ivy to download dependencies. It sets jersey.classpath as the result. Right now my build task depends on the init task. So every time I build, it checks if

Getting a jar along with its sources and javadoc

天大地大妈咪最大 提交于 2019-12-22 10:58:52
问题 With the following in ivy.xml : <dependency org="com.amazonaws" name="aws-java-sdk" rev="1.4.5"> <artifact name="aws-java-sdk" ext="jar"/> </dependency> It downloads aws-java-sdk-1.4.5.jar and this is the AWS SDK, i.e. classes. That's fine but I'd also like to get the Javadoc and sources. Following advice from Ivy: Fetching Javadocs and Sources I put the following in ivy.xml <configurations> <conf name="default" /> <conf name="compile" visibility="public"/> <conf name="sources" visibility=

SBT configuration vs Ivy module configuration

我的梦境 提交于 2019-12-22 10:57:27
问题 This appears similar to sbt Configuration vs Ivy configuration, though it doesn't seem like this question is asked: What is the difference between libraryDependencies += "com.example" % "foo" % "1.0" % "test" and libraryDependencies in Test += "com.example" % "foo" % "1.0" (And a similar question for IntegrationTest / "it" .) Should I always use SBT configuration, or Ivy configuration? Or does it depend on the particular case? I have seen the former more often, though it seems that the latter

ivy retrieve leads to “module not found: org.slf4j#slf4j-api;${slf4j.version}”

倾然丶 夕夏残阳落幕 提交于 2019-12-22 10:55:32
问题 My question is, why am I able to pull dependencies from some, but not all, of the public ivy repos? I am using an ant build.xml script to call the ivy:retrieve command. Here is the relevant line from my ivy.xml file, where I have removed all of the other dependencies for clarity: <dependencies> <dependency org="log4j" name="log4j" rev="1.2.16"/> </dependencies> which is being pulled from a public repository given in my ivysettings.xml file <!-- General public repository !--> <ibiblio name=

How does Apache Ivy resolve the variables in artifact patterns provided in the ivysettings.xml file?

喜你入骨 提交于 2019-12-22 10:43:22
问题 If my ivysettings.xml file includes: <url name="com.springsource.repository.bundles.external"> <ivy pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /> <artifact pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /> </url> And my ivy.xml file includes: <dependency org="org.junit" name="com.springsource.org.junit" rev="4.4.0" /> From when

Avoiding re-building prerequisites in Ant

北城余情 提交于 2019-12-22 08:54:38
问题 I have an existing Ant project and would like to speed up the build process by avoiding re-building components that are already up to date. Ant permits you to specify that one target depends on another, but by default every prerequisite is always rebuilt, even if it is already up to date. (This is a key difference between Ant and make. By default, make only re-builds a target when needed -- that is, if some prerequisite is newer.) <uptodate property="mytarget.uptodate"> // in set.mytarget

How to build using SBT in offline mode

心不动则不痛 提交于 2019-12-22 08:52:38
问题 What is the equivalent of mvn -o in SBT? When I check my .ivy repository, I can see the dependecy jars in cache/groupId/artifactId/jars . When I try to build it without internet connection, it still does this Resolving ... thing and shows Unresolved Dependencies error. How can I turn this off? I tried using sbt set-offline := true but still gets the error. Is this possible? Maybe download once and save the artifacts in .m2 like maven and get it from there if its not possible in .ivy 回答1: Are