I _just_ realized that.

But I've looked at the resources plugin - you don't have to bind that.

Is this just the way hand-rolled plugins work? 

-----Original Message-----
From: Olivier Dehon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 09, 2008 9:21 PM
To: Maven Users List
Subject: Re: binding a plugin to a lifecycle goal

You need to add an <execution> in your POM like:

<build>
  <plugins>
    <plugin>
      <artifactId>maven-whatever-plugin</artifactId>
      <executions>
        <goals>
          <goal>assemble</goal>
        </goals>
      </executions>
    </plugin>
  </plugins>
</build>

The fact that you specified the @phase in your mojo will attach the
execution automatically to the process-resources phase.

-Olivier

On Wed, 2008-04-09 at 21:09 -0400, EJ Ciramella wrote:
> I've written a few maven plugins now, most of the type that should be
> called explicitly.
>  
> I have a new one however, that I'd like to be part of the regular
> lifecycle.
>  
> I have this in my mojo:
>  
> /**
>  * <description>
>  * @goal assemble
>  * @phase process-resources
>  */
>  
> but when I run "mvn process-resources" it doesn't execute my plugin.
>  
> What am I doing wrong?


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


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

Reply via email to