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
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
... it does not compile because the central repository does not contain
artifact maven-plugin-plugin :-(
Jeff
-Original Message-
From: Benjamin Bentmann [mailto:benjamin.bentm...@udo.edu]
Sent: Tuesday, June 15, 2010 3:49 PM
To: Maven Developers List
Subject: Re: How to get the
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-plugin/
On Jun 15, 2010, at 10:49 AM, giuseppe.gr...@b-source.ch
giuseppe.gr...@b-source.ch wrote:
... it does not compile because the central repository does not contain
artifact maven-plugin-plugin :-(
Jeff
Found... but version 2.6 does not contain class MojoExecution and the
code below does not compile.
-Original Message-
From: Jason van Zyl [mailto:ja...@sonatype.com]
Sent: Tuesday, June 15, 2010 4:51 PM
To: Maven Developers List
Subject: Re: How to get the execution id from a plugin
Yes, I realize.
Look at an existing plugin and start with that. Or use the Maven Plugin
archteype. If you don't know what I'm talking about then read this:
http://www.sonatype.com/products/maven/documentation/book-defguide
On Jun 15, 2010, at 11:04 AM, giuseppe.gr...@b-source.ch
Giuseppe.Greco wrote:
Found... but version 2.6 does not contain class MojoExecution and the
code below does not compile.
I don't really understand what you're trying to do when you *depend* on
the maven-plugin-plugin, usually it's just used to built your plugin's
metadata.
MojoExecution
Finally I was able to compile it... but it does not work. I created a
base class like this:
public abstract class ContextAbstractMojo extends AbstractMojo {
/**
* The execution ID as defined in the POM.
*
* @parameter default-value=${mojoExecution}}
* @readonly
*/
On 15 June 2010 16:31, giuseppe.gr...@b-source.ch wrote:
Finally I was able to compile it... but it does not work. I created a
base class like this:
public abstract class ContextAbstractMojo extends AbstractMojo {
/**
* The execution ID as defined in the POM.
*
*
Guy,
It works! Thank you very much for your help.
Cheers,
Jeff
-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
Sent: Tuesday, June 15, 2010 5:36 PM
To: Maven Developers List
Subject: Re: How to get the execution id from a plugin
On 15 June
10 matches
Mail list logo