Gets kind of messy. You'd actually need to separate spring-orm-hibernate between spring-orm-hibernate2 and spring-orm-hibernate3. You'd need to split (for now, until Spring 2, I think) spring-hibernate into spring-hibernate2 and spring-hibernate3. And then for Hibernate, you might have your optional dependencies for different caching services, etc. You'd require someone else to make a POM for each of these scenarios too. What if you had both different optional caches & different optional transaction managers? The number of POM's necessary to maintain can grow very quickly.
Seems easier to specify the dependencies you have explicitly. You don't just have a transitive dependency on hibernate that you don't even know about, you explicitly have code written for hibernate (mapping files, dao's, code directly using spring-hibernate, etc.) -Stephen On 24 Jan 2006 15:34:52 -0000, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > If the dependencies are optional, my POM has to explicitly state the > dependencies > it wants. Kind of defeats the whole purpose of transitive dependencies, > right? > There should simply be a seperate POM for each set of dependencies. > ex: > > spring-orm-hibernate > spring-orm-jdo > spring-orm-toplink > etc... > > Not sure > I see what the problem is. Almost all the dependencies are > <optional>true</optional>, > and therefore don't come through > transitively. Therefore you don't need > to exclude them. > > -Stephen > > On 24 Jan 2006 04:40:00 -0000, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > Why oh why is it so painful > to setup a new project? Transitive dependencies > > are actually causing > more pain than they are helping me. This is largely > > due to the poor state > of the spring POM's, but I think it's highly unrealistic > > to expect new > java projects to jump through the hoops of specifing a ton of > > "excludes" > in their POM. > > > > Spring is a perfect example of a framework that > > is > being adopted more and more every day. How can maven2 claim to have > transitive > > > dependencies, and have it perform so poorly with one of the prime examples? > > > > > > > http://jroller.com/page/$entry.website.user.userName/?anchor=seperate_artifacts_for_seperate_dependencies > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional > commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Stephen Duncan Jr www.stephenduncanjr.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]