no..if your plugin is bound to a phase of the default-lifecycle (unless 
overidden at command-line)

 

i dont know if this requested enhancement has been coded?

http://docs.codehaus.org/display/MAVENUSER/Default+Plugin+Execution+IDs


is there an enhancement underway?
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



 

> Date: Tue, 15 Jun 2010 15:48:47 +0200
> From: benjamin.bentm...@udo.edu
> To: dev@maven.apache.org
> Subject: Re: How to get the execution id from a plugin
> 
> Giuseppe.Greco wrote:
> 
> > private void execute() throws MojoExecutionException
> > {
> > /* I need to get the execution id here */
> > }
> 
> /**
> * @parameter default-value="${mojoExecution}"
> * @readonly
> */
> private MojoExecution mojoExecution;
> 
> and
> 
> mojoExecution.getId();
> 
> should do. I only can't tell since what Maven version that works.
> 
> 
> Benjamin
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
> 
                                          
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1

Reply via email to