maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Bentmann <benjamin.bentm...@udo.edu>
Subject Re: How to get the execution id from a plugin
Date Tue, 15 Jun 2010 13:48:47 GMT
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-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message