On Fri, 2004-04-16 at 10:39, Vincent Massol wrote: > > Do you use this sort of setup? > > Yes. I personally don't like XML entity includes. So I'd be happy to > have some built in ways in Maven. I made some proposal a long time ago > on the Maven mailing lists about the ability to define groups of > dependencies, giving them an id and the ability to reference by id. > > The main problem is that we wish all projects to use the same version of > such and such dependency (say version 1.2.8 of log4j for ex). How do you > ensure this?
I always used the jar override but in a group setup across projects the group override probably didn't cut it. I just put it in my build.properties but that doesn't work for group dev. This is something that can definitely be fixed in m2. > The solution we have followed was to move all external > dependencies to the top level project.xml so that versions are > controlled in one place. Unfortunately the side effect is that you can't > guess anymore what is the minimal set of dependencies required by such > subproject. Not sure it matters that much but I personally like to know > this kind of information and have some clean stuff. You should definitely be able to do this. > If this use case could be supported it would be great. Here are the > requirements: > 1- ability to define deps in each project > 2- ability to factor some set of dependencies Now with transitive deps you can simply state your dependency on cactus and all its deps will be pull along. Would you still need sets of dependencies with transitive deps working? > 3- ability to say that all deps for such artifact is always for such > version (this third requirement could be satisfied by requirement #2). Yes, for integration work this is essential. So a friendlier JAR override. > > -- > jvz. > > Jason van Zyl > [EMAIL PROTECTED] > http://maven.apache.org > > happiness is like a butterfly: the more you chase it, the more it will > elude you, but if you turn your attention to other things, it will come > and sit softly on your shoulder ... > > -- Thoreau --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
