On Thu, 2004-03-18 at 06:18, Rafal Krzewski wrote: > Maczka Michal wrote: > > >So what I am saying is that we should be only merging POMs not arbitrary XML > > > > > Very good point. I personaly hate SGML entities mockery with all my > heart - it's so ugly and so fragile! As for explicit inclusion of XML > bits, problems arise when they are used acorss multiple projects - you > either have to depend on the directory layout in the users workspace, or > depend on Maven's local repository layout. This is better, but far from > perfect. Solving this through POM dependencies is by far superior to > other alternatives. The tricky part is the merge logic and control though.
In maven2 the only thing that ever gets operated is the object model. The construction of the object model and what is subsequently done to the model are entirely separate. I'm not sure if you watch the commits but I've slowly been moving snippets of code that accumulated in the model that don't belong. The final step was the generation of the model sources and the xpp3 marshaller and unmarshaller from the maven.mdo file which describes maven's model. I was subsequently forced to place all code that augmented the model into the project builder component: for example things like inheritance and interpolation, transformation of dependencies to artifacts and a handful of other things. So ultimately the object model can come from anywhere and the project builder will take the object model and do everything that needs to be done. So if someone wants to make a whacky component that makes a maven object model from dbase they can go right ahead. Currently I do absolutely nothing in the generated xpp3 unmarshaller other than deal with data ultimately, the real work is done by the project builder. > R. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- 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]