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. > > The "readme.txt" file in the Booking MVC application refers to adding > repositories to the ivysettings.xml file, and dependencies to the > ivy.xml file. I believe I did that, but the output appears to be the > same. The lines it says to add to the "ivy.xml" file seem odd, as they > are very similar to existing dependency lines in the file. It doesn't > make any difference with or without the new lines, so it's clear there's > something else wrong. > > I added these lines to the end of the ivysettings.xml file (before the > "ivysettings" end tag): > ------------ > <url name="com.springsource.repository.bundles.release"> > <ivy > pattern="http://repository.springsource.com/ivy/bundles/release/[organisati >on]/[module]/[revision]/[artifact]-[revision].[ext]" /> > <artifact > pattern="http://repository.springsource.com/ivy/bundles/release/[organisati >on]/[module]/[revision]/[artifact]-[revision].[ext]" /> > </url> > > <url name="com.springsource.repository.bundles.external"> > <ivy > pattern="http://repository.springsource.com/ivy/bundles/external/[organisat >ion]/[module]/[revision]/[artifact]-[revision].[ext]" /> > <artifact > pattern="http://repository.springsource.com/ivy/bundles/external/[organisat >ion]/[module]/[revision]/[artifact]-[revision].[ext]" /> > </url> > ----------
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" /> Nicolas > > 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 > > (2ms) > [ivy:cachepath] ==== integration: tried > [ivy:cachepath] > /home/davidkarr/frameworks/spring-webflow-2.0.7.RELEASE/projects/spring-web >flow-samples/booking-mvc/../../integration-repo/org.springframework.webflow/ >org.springframework.js/2.0.7.RELEASE/org.springframework.js-2.0.7.RELEASE.ja >r [ivy:cachepath] [NOT FOUND ] > org.springframework.webflow#org.springframework.js;2.0.7.RELEASE!org.spring >framework.js-sources.jar(src) > > (1ms) > [ivy:cachepath] ==== integration: tried > [ivy:cachepath] > /home/davidkarr/frameworks/spring-webflow-2.0.7.RELEASE/projects/spring-web >flow-samples/booking-mvc/../../integration-repo/org.springframework.webflow/ >org.springframework.js/2.0.7.RELEASE/org.springframework.js-sources-2.0.7.RE >LEASE.jar [ivy:cachepath] [NOT FOUND ] > org.springframework.webflow#org.springframework.webflow;2.0.7.RELEASE!org.s >pringframework.webflow-sources.jar(src) > > (0ms) > [ivy:cachepath] ==== integration: tried > [ivy:cachepath] > /home/davidkarr/frameworks/spring-webflow-2.0.7.RELEASE/projects/spring-web >flow-samples/booking-mvc/../../integration-repo/org.springframework.webflow/ >org.springframework.webflow/2.0.7.RELEASE/org.springframework.webflow-source >s-2.0.7.RELEASE.jar [ivy:cachepath] [NOT FOUND ] > org.springframework.webflow#org.springframework.webflow;2.0.7.RELEASE!org.s >pringframework.webflow.jar > > (0ms) > [ivy:cachepath] ==== integration: tried > [ivy:cachepath] > /home/davidkarr/frameworks/spring-webflow-2.0.7.RELEASE/projects/spring-web >flow-samples/booking-mvc/../../integration-repo/org.springframework.webflow/ >org.springframework.webflow/2.0.7.RELEASE/org.springframework.webflow-2.0.7. >RELEASE.jar [ivy:cachepath] [NOT FOUND ] > org.springframework.webflow#org.springframework.binding;2.0.7.RELEASE!org.s >pringframework.binding.jar > > (0ms) > [ivy:cachepath] ==== integration: tried > [ivy:cachepath] > /home/davidkarr/frameworks/spring-webflow-2.0.7.RELEASE/projects/spring-web >flow-samples/booking-mvc/../../integration-repo/org.springframework.webflow/ >org.springframework.binding/2.0.7.RELEASE/org.springframework.binding-2.0.7. >RELEASE.jar [ivy:cachepath] [NOT FOUND ] > org.springframework.webflow#org.springframework.binding;2.0.7.RELEASE!org.s >pringframework.binding-sources.jar(src) > > (1ms) > [ivy:cachepath] ==== integration: tried > [ivy:cachepath] > /home/davidkarr/frameworks/spring-webflow-2.0.7.RELEASE/projects/spring-web >flow-samples/booking-mvc/../../integration-repo/org.springframework.webflow/ >org.springframework.binding/2.0.7.RELEASE/org.springframework.binding-source >s-2.0.7.RELEASE.jar [ivy:cachepath] > :::::::::::::::::::::::::::::::::::::::::::::: > [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 > ------------------
