Hi Brett,

Thanks for your help on this for the clover plugin.

"* Defining the lifecycle according to packaging

I think it is worthwhile defining the lifecycle by the packaging, so the
phases are fixed, but their mapping to goals are defined as configuration
inside the artifact type handler. This allows a plugin to add a
plugin:descriptor goal. It also allows a packaging of pom to not register
any of the goals other than install/deploy.

The alternative is to always register them, disregarding the type, and use
the type as a mojo execution guard - but I think this might be less clean in
this particular case."

I agree. I don't understand "This allows a plugin to add a plugin:descriptor
goal". Why cannot this be done by the @phase tag in the mojo?

I've tried reading the rest of the document but I'm missing some knowledge
to be able to follow the discussion...

I'm not sure I understand the "@executePhase <somephase>" tag? Is it like a
m1 prereqs in that it tells m2 to execute the <somephase> phase before
executing the mojo goal? I don't understand the concept of the "lifeycle
cloning" though. What does it mean? Why is it required (probably not to
interfere with something but with what)?

"Desired use:
- m2 clover:clover
  1) register clover compiler goal into generate-sources
  2) modify output directory
  3) run test (based on executePhase)
  4) report database later reused"

Does this cover the following m1 use case: "maven clover:on war clover:off"?
How do you tell clover:clover that it should execute the war goal or
anything else for that matter?

I'll comment more on the rest when I understand more about the above.

Thanks
-Vincent 

> -----Original Message-----
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: lundi 2 mai 2005 07:10
> To: Maven Developers List
> Subject: lifecycle design: clover and other use cases
> 
> Here are my thoughts on the remaining concepts for the build lifecycle.
> 
> I'm not up for doing any confluence editing right now (I wrote most of
> this offline), but after feedback I can incorporate it into an doc to
> add to maven-core.
> 
> Feedback?
> 
> - Brett


_________________________________________________________________

Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !

Yahoo! Mail : http://fr.mail.yahoo.com


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

Reply via email to