You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by "David M. Karr" <da...@gmail.com> on 2009/04/27 00:38:08 UTC

How to diagnose Ivy problem with Spring Web Flow demo build?

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/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" 
/>
     <artifact 
pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" 
/>
</url>

<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>
----------

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-build/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.springframework.js.jar 

(2ms)
[ivy:cachepath] 	==== integration: tried
[ivy:cachepath] 	
/home/davidkarr/frameworks/spring-webflow-2.0.7.RELEASE/projects/spring-webflow-samples/booking-mvc/../../integration-repo/org.springframework.webflow/org.springframework.js/2.0.7.RELEASE/org.springframework.js-2.0.7.RELEASE.jar
[ivy:cachepath] 		[NOT FOUND  ]
org.springframework.webflow#org.springframework.js;2.0.7.RELEASE!org.springframework.js-sources.jar(src) 

(1ms)
[ivy:cachepath] 	==== integration: tried
[ivy:cachepath] 	
/home/davidkarr/frameworks/spring-webflow-2.0.7.RELEASE/projects/spring-webflow-samples/booking-mvc/../../integration-repo/org.springframework.webflow/org.springframework.js/2.0.7.RELEASE/org.springframework.js-sources-2.0.7.RELEASE.jar
[ivy:cachepath] 		[NOT FOUND  ]
org.springframework.webflow#org.springframework.webflow;2.0.7.RELEASE!org.springframework.webflow-sources.jar(src) 

(0ms)
[ivy:cachepath] 	==== integration: tried
[ivy:cachepath] 	
/home/davidkarr/frameworks/spring-webflow-2.0.7.RELEASE/projects/spring-webflow-samples/booking-mvc/../../integration-repo/org.springframework.webflow/org.springframework.webflow/2.0.7.RELEASE/org.springframework.webflow-sources-2.0.7.RELEASE.jar
[ivy:cachepath] 		[NOT FOUND  ]
org.springframework.webflow#org.springframework.webflow;2.0.7.RELEASE!org.springframework.webflow.jar 

(0ms)
[ivy:cachepath] 	==== integration: tried
[ivy:cachepath] 	
/home/davidkarr/frameworks/spring-webflow-2.0.7.RELEASE/projects/spring-webflow-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.springframework.binding.jar 

(0ms)
[ivy:cachepath] 	==== integration: tried
[ivy:cachepath] 	
/home/davidkarr/frameworks/spring-webflow-2.0.7.RELEASE/projects/spring-webflow-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.springframework.binding-sources.jar(src) 

(1ms)
[ivy:cachepath] 	==== integration: tried
[ivy:cachepath] 	
/home/davidkarr/frameworks/spring-webflow-2.0.7.RELEASE/projects/spring-webflow-samples/booking-mvc/../../integration-repo/org.springframework.webflow/org.springframework.binding/2.0.7.RELEASE/org.springframework.binding-sources-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.springframework.js.jar
[ivy:cachepath] 		::
org.springframework.webflow#org.springframework.js;2.0.7.RELEASE!org.springframework.js-sources.jar(src)
[ivy:cachepath] 		::
org.springframework.webflow#org.springframework.webflow;2.0.7.RELEASE!org.springframework.webflow-sources.jar(src)
[ivy:cachepath] 		::
org.springframework.webflow#org.springframework.webflow;2.0.7.RELEASE!org.springframework.webflow.jar
[ivy:cachepath] 		::
org.springframework.webflow#org.springframework.binding;2.0.7.RELEASE!org.springframework.binding.jar
[ivy:cachepath] 		::
org.springframework.webflow#org.springframework.binding;2.0.7.RELEASE!org.springframework.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-build/common/common.xml:87: 

impossible to resolve dependencies:
	resolve failed - see output for details

Total time: 1 minute 33 seconds
------------------

Re: How to diagnose Ivy problem with Spring Web Flow demo build?

Posted by "David M. Karr" <da...@gmail.com>.
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
>> ------------------
> 
> 

Re: How to diagnose Ivy problem with Spring Web Flow demo build?

Posted by Nicolas Lalevée <ni...@hibnet.org>.
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
> ------------------


Re: How to diagnose Ivy problem with Spring Web Flow demo build?

Posted by "David M. Karr" <da...@gmail.com>.
paul.newport@targetgroup.net wrote:
> A lot of people had problems building the webflow examples due to ivy
> configuration issues. Springsource now supply a pre-built download as an
> option,I'd get that if I were you.

Thanks, but it's worth it to me to work out these issues.  I would 
actually like to learn more about Ivy, as opposed to ignoring it.


Re: How to diagnose Ivy problem with Spring Web Flow demo build?

Posted by pa...@targetgroup.net.




A lot of people had problems building the webflow examples due to ivy
configuration issues. Springsource now supply a pre-built download as an
option,I'd get that if I were you.



Target
www.targetgroup.net
 
Target is a trading name of Target Group Limited, 
registered in England and Wales No. 1208137
Registered office:  Target House, Cowbridge Road East, Cardiff CF11 9AU

**********************************************************************
DISCLAIMER.
This message is intended only for the use of the Addressee and may
contain information that is PRIVILEGED and CONFIDENTIAL. 
If you are not the intended recipient you must not copy, 
distribute or take any action or reliance upon it. 
The content of this message may also contain personal 
views of an employee of this company and does
not necessarily represent the view of the company.
**********************************************************************
This message has been scanned by Norton Anti-Virus. 
It has also been scanned by MAILsweeper to enforce our e-mail 
policy. If you have any concerns or comments about the content 
of this message, please  e-mail support@targetgroup.net.
**********************************************************************


_____________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com