Re: AW: POM inheritance...
Michael Nash <[email protected]>
| Newsgroups | gmane.comp.java.keel.devel |
|---|---|
| Organization | JGlobal Limited |
| Message-ID | <[email protected]> |
Aleks: On Tue, 2005-03-15 at 07:30, Vidakovic Aleksandar wrote: > Mike, > > as for my error: I fixed it... don't know how... probably a typo. Ok > > You are right with the location of the POM parent file; some jakarta projects (commons-xxx) use a > common project.xml which is ugly for building if you check out only one module. I was just > wondering if all the dependencies in the project.xml are necessary... I had the impression > that in some keel modules there are more dependencies than actually needed (didn't verify it!). I believe that's true to some extent. We're still shuffling some dependencies to try to make sure every module and every app have a "minimal" set. > A common part for all projects is the "<build>" block... but this is maybe not enough for a common project.xml. Actually, the build block is a bit different (or should be!) for app-* projects, clnt-* and svc-* projects. Between those types it's pretty much the same, but I don't think enough to warrant a common file. > I'm sure that I didn't get entirely the idea behind "keel:maven"... > I understood that it modifies the dependencies in project.xml, but how does it know which dependencies I need? It checks the POM for every dependency you list and checks for *its* dependencies. E.g. if you include keel-common, and keel-common needs "a" "b" and "c", then it will include "a", "b" and "c" for you. Basically it's a transitive dependency-resolving tool, if that's the right term :-) So you only need to worry about the "top-level" depenencies - e.g. in your project (not a service or app-* module), you might include svc-persist-default, which has it's own list of dependencies - but you only put in "svc-persist-default", then run keel:maven to take care of the rest. It also checks for version number conflicts and "flags" the dependency with a conflict (with a <conflict> property). Mike > > Aleks > > -----Ursprüngliche Nachricht----- > Von: Michael Nash [mailto:[email protected]] > Gesendet: Dienstag, 15. März 2005 12:57 > An: developers-6VIttnCrOeJXNEnpj1eHPNi2O/[email protected] > Betreff: Re: [Keelgroup] POM inheritance... > > > Aleks: > > On Mon, 2005-03-14 at 17:43, Aleksandar Vidakovic wrote: > > Salut all, > > > > I was wondering why we don't use Maven's inheritance feature for POMs? I > > know that I was asking this question some weeks ago and got an answer, > > but don't find the message anymore... sorry for asking this twice ;-) > > No problem - I suggested last time that there wasn't a good reason to do > so - I don't (so far) see enough "overlap" in the POM files to make > inheritance all that useful, and it does means that the "common" file > must be in the right place or your build won't work. As it is now, > projects can be anywhere on the filesystem. > > Do you see a place where there's a lot of duplication in the POMS? > > > > > And... I have some difficulties running "keel:maven". I get the > > following error: > > > > [java] java.lang.NumberFormatException: multiple points > > [java] at > > sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1084) > > [java] at java.lang.Float.valueOf(Float.java:360) > > [java] at java.lang.Float.<init>(Float.java:461) > > [java] at > > org.keel.tools.maven.KeelMavenTool.toNumber(KeelMavenTool.java:560) > > [java] at > > org.keel.tools.maven.KeelMavenTool.addIfNoConflict(KeelMavenTool.java:449) > > [java] at > > org.keel.tools.maven.KeelMavenTool.addDependencies(KeelMavenTool.java:405) > > [java] at > > org.keel.tools.maven.KeelMavenTool.run(KeelMavenTool.java:121) > > [java] at > > org.keel.tools.maven.KeelMavenTool.main(KeelMavenTool.java:88) > > > > Thanks in advance... > > Multiple points? Hmm - sounds like more than one decimal in something > that's supposed to be a number. What project.xml are you running this > on? Does it have an unusual version number in it perhaps? > > Mike > > > > > Aleks > > > > http://keelframework.org/documentation.shtml > > Keelgroup mailing list > > [email protected] > > http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com > > http://keelframework.org/documentation.shtml > Keelgroup mailing list > [email protected] > http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com > http://keelframework.org/documentation.shtml > Keelgroup mailing list > [email protected] > http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com http://keelframework.org/documentation.shtml Keelgroup mailing list [email protected] http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com