Nicolas Lalevée wrote:
On lundi 27 avril 2009 00:38:08 David M. Karr wrote:
I haven't used Ivy before, but I've used Ant extensively. I was trying
to build the Spring Web Flow Booking MVC demo, but it's failing to
build, apparently due to some Ivy downloading problem. I asked about
this on one of the Spring forums, but perhaps I can get a different kind
of answer here. The build output follows this. It refers to increasing
the message level for more details, but I'm not certain how to do that.
[deleted]
Considering the ouput of the ivy resolve task, it seems that Ivy is not
configured to actually use those configured resolvers. It seems that it only
uses your "integration-repo".
So you probably need to add a chain resolver:
<chain name="chain">
<resolver ref="integration-repo" />
<resolver ref="com.springsource.repository.bundles.release" />
<resolver ref="com.springsource.repository.bundles.external" />
</chain>
And set the default resolver to be that chain:
<settings defaultResolver="chain" />
I assume I add these in the ivysettings.xml file (and change the value
of "defaultResolver" from "external-lookup" to "chain")?
Implementing these changes gets me "unknown resolver integration-repo:
resolver should be defined before being referenced".
I added these dependency lines to the "ivy.xml" file:
-------------------
<dependency org="org.springframework.webflow"
name="org.springframework.binding" rev="2.0.7.RELEASE"
conf="compile->runtime" />
<dependency org="org.springframework.webflow"
name="org.springframework.js" rev="2.0.7.RELEASE" conf="compile->runtime"
/> <dependency org="org.springframework.webflow"
name="org.springframework.webflow" rev="2.0.7.RELEASE"
conf="compile->runtime" />
----------------
Build output:
--------------------------
$ ant jar
Buildfile: build.xml
Trying to override old definition of task dist-jar
ivy.init:
ivy.file.exists:
resolve.init:
resolve.compile:
[ivy:cachepath] :: Ivy 2.0.0 - 20090108225011 ::
http://ant.apache.org/ivy/ ::
:: loading settings :: file =
/home/davidkarr/frameworks/spring-webflow-2.0.7.RELEASE/projects/spring-bui
ld/common/ivysettings.xml [ivy:cachepath] [2.0.7.RELEASE]
org.springframework.webflow#org.springframework.js;latest.integration
[ivy:cachepath] [2.0.7.RELEASE]
org.springframework.webflow#org.springframework.webflow;latest.integration
[ivy:cachepath]
[ivy:cachepath] :: problems summary ::
[ivy:cachepath] :::: WARNINGS
[ivy:cachepath] [NOT FOUND ]
org.springframework.webflow#org.springframework.js;2.0.7.RELEASE!org.spring
framework.js.jar
[deleted]
::::::::::::::::::::::::::::::::::::::::::::::
[ivy:cachepath] :: FAILED DOWNLOADS ::
[ivy:cachepath] :: ^ see resolution messages for details ^ ::
[ivy:cachepath] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:cachepath] ::
org.springframework.webflow#org.springframework.js;2.0.7.RELEASE!org.spring
framework.js.jar [ivy:cachepath] ::
org.springframework.webflow#org.springframework.js;2.0.7.RELEASE!org.spring
framework.js-sources.jar(src) [ivy:cachepath] ::
org.springframework.webflow#org.springframework.webflow;2.0.7.RELEASE!org.s
pringframework.webflow-sources.jar(src) [ivy:cachepath] ::
org.springframework.webflow#org.springframework.webflow;2.0.7.RELEASE!org.s
pringframework.webflow.jar [ivy:cachepath] ::
org.springframework.webflow#org.springframework.binding;2.0.7.RELEASE!org.s
pringframework.binding.jar [ivy:cachepath] ::
org.springframework.webflow#org.springframework.binding;2.0.7.RELEASE!org.s
pringframework.binding-sources.jar(src) [ivy:cachepath]
::::::::::::::::::::::::::::::::::::::::::::::
[ivy:cachepath]
[ivy:cachepath] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
BUILD FAILED
/home/davidkarr/frameworks/spring-webflow-2.0.7.RELEASE/projects/spring-bui
ld/common/common.xml:87:
impossible to resolve dependencies:
resolve failed - see output for details
Total time: 1 minute 33 seconds
------------------