right you are. for some reason this wasn't working for me. though after manually deleting .ivy2 and re-publishing relevant projects things now work exactly as you describe.
Awesome! Xavier Hanin wrote: > > On 11/1/07, dukehoops <[EMAIL PROTECTED]> wrote: >> >> >> Hi, >> >> I have MyService module that has several dependencies. I would like to >> auto-include all dependencies when MyService is published. How can I do >> that >> (in ivy.xml or in ant publish task)? >> >> In more detail: >> MyService depends on spring.jar and produces MyService.jar >> >> There will be another project MyWebApp that will depend on MyService. I >> don't want MyWebApp to have to specify the contents of MyService and its' >> dependencies. So I'd like retrieval of MyService to d/l both >> spring.jarand >> MyService.jar. Thus, it seems, I need MyService to publish spring.jar. > > > No, this is what transitive dependencies resolution is all about. If > MyWebApp uses Ivy to resolve its dependency on MyService, and if MyService > declares to depend on spring, you will get what you want, no need to say > that MyService publishes spring.jar. > > Xavier > > However, instead of saying (in MyService's ivy.xml) 'publish artifact >> name="spring.jar" I'm wondering if there's a way to say "include all >> dependencies" in publications. >> >> Is that possible? >> >> thanks >> -nikita >> -- >> View this message in context: >> http://www.nabble.com/how-to-include-all-dependencies-when-publishing--tf4734263.html#a13538048 >> Sent from the ivy-user mailing list archive at Nabble.com. >> >> > > > -- > Xavier Hanin - Independent Java Consultant > http://xhab.blogspot.com/ > http://ant.apache.org/ivy/ > http://www.xoocode.org/ > > ----- ---------------- Nikita Tovstoles vside.com ---------------- -- View this message in context: http://www.nabble.com/how-to-include-all-dependencies-when-publishing--tf4734263.html#a13540121 Sent from the ivy-user mailing list archive at Nabble.com.
