Dominik Dahlem wrote:

Hi all,

I've been thinking about how to support a multiproject of multiprojects
and couldn't find a working solution to it. I'm facing two problems:
(1) If I could find out whether a project is a multiproject or not, it
would be possible to just delegate the original command (e.g.
"multiproject:goal -Dgoal=test") to the multiproject. Otherwise, "maven
test" on a normal project. Are there mechanisms in maven which allow to
do that?


The indicator if project is "multiproject" exists in m2 and will be most likely introduced in maven 1.1
This will be implemented by addition of the new tag in the POM named <type>.


At the moment some plugins are using "maven.multiproject.type" property of multiproject plugin.
But this is not a good thing - but unfortunately the best which curenntly exists.


(2) If I overwrite the site goal in maven.xml of the multiproject to
attain the site goal on each of its components the components themselves
would inherit the overwritten site goal which ends up in an infinite
build loop.


I will try to fix this particular problem pretty soon (requires minor changes in site and multiproject plugins)
But we will need to define common contract which needs to be implemented by plugins in case of multiprojects goal.
Possibly this contract can be partially built in into core so for example delegation to given goal/plugin
may be sensitive to project's type.


Michal


---------------------------------------------------------------------- Startuj z INTERIA.PL!!! >>> http://link.interia.pl/f1837


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to