You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Benson Margulies <bi...@gmail.com> on 2009/12/19 01:29:52 UTC

Mojo with a default execution

So, I have a Mojo class with this comment block:

/**
 * @description Generate java code with Velocity.
 * @goal generate
 * @phase generate-sources
 * @requiresProject true
 */

I put this plugin in <build><plugins>.... in a pom, and I run 'mvn
generate-sources'.

I get ...

[INFO] ------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Mojo with a default execution

Posted by Benson Margulies <bi...@gmail.com>.
When it didn't work, just

<plugin>
  <groupId/>
  <artifactId/>
  <version/>
<plugin>

No executions, since I thought the @goal + @phase in the comment would
produce a default execution.

If I add an execution with my goal in it, it indeed binds to the correct phase.


On Fri, Dec 18, 2009 at 9:22 PM, Wayne Fay <wa...@gmail.com> wrote:
>> I put this plugin in <build><plugins>.... in a pom, and I run 'mvn
>> generate-sources'.
>
> What's the pom entry look like?
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Mojo with a default execution

Posted by Wayne Fay <wa...@gmail.com>.
> I put this plugin in <build><plugins>.... in a pom, and I run 'mvn
> generate-sources'.

What's the pom entry look like?

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org