On Thu, 2002-07-04 at 11:57, Vincent Massol wrote:
> Hi Nicola,

> 
> Trying to have each plugin independent one of another is a nice goal.
> But difficult to achieve without lots of build code duplication. Just
> check the Ant dependency graphs
> (http://www.teria.com/~koseki/vizant/examples.html), you'll see that
> there are dependencies between functional build units. If you normalize
> them, you duplicate lots of code.
> 
> Thus, we need a way to tell the master build that before we run our new
> plugin, it has to run such and such targets/goals from such other
> plugin. Yes, I know, we introduce plugin dependency but just as long as
> our new plugin only relies on core plugins there is no problem (same
> issue as Ant build files relying on core ant tasks vs optional ones - we
> just abstract one level higher, plugins instead of tasks).
> 
> In addition, let's say I add a Test Coverage plugin. As a user, I may or
> may not want it to be called when I run the "site" target to generate
> the web site. Thus I need a way to tell this to Maven.
> 
> Maven provides a default wiring of targets but we need to let the user
> the ability to add either his own build code before/after or change the
> order of targets (not sure we have that yet in Maven, do we Jason/Bob ?
> I mean can a user change the default sequence order of targets ?).

Any arbitrary layering of pre/post goals before a core goal is now
possible by defining them as such in the maven.xml file. It's really
like an AOP build system now :-)
 
> I don't see what is wrong with that ?

Nope. We definitely want to provide core goals for consistency but we
now allow for any contingency that individual projects may throw Maven's
way. I think this round of changes is a super improvement.

> Thanks
> -Vincent
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


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

Reply via email to