As I mentioned I used @phase "pre-site" but it does not work.
It looks like I should explicitly attach my mojo to "site" lifecycle. I
guess the mojo belongs to "default" lifecycle. So question is HOW TO ATTACH
MOJO to *SITE LIFECYCLE*!
There is really nobody who tried to execute mojo in *pre-site* phase?!
Thanks a lot,
Libor
On 7/1/07, Eric Redmond <[EMAIL PROTECTED]> wrote:
Try: @phase "pre-site"
In any case, you can for binding to pre-site with
<executions>
<execution>
<phase>pre-site</phase>
<goals>
<goal>init-project</goal>
</goals>
</execution>
</executions>
On 6/24/07, Libor Kramoliš <[EMAIL PROTECTED]> wrote:
>
> Hello.
>
> I try to create mojo that is attached to pre-site phase but I am not
> successful. What should I do to create such mojo?
>
> What I have now. I have implementation (InitProjectMojo) of AbstractMojo
> that is annotated by @goal init-project and @phase pre-site. And also it
> is
> configured in client pom.xml:
>
> <build>
> <plugins>
> <plugin>
> <groupId>my.mojo</groupId>
> <artifactId>maven-gdf4j-plugin</artifactId>
> <executions>
> <execution>
> <goals>
> <goal>init-project</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
>
> But when I execute mvn pre-site or mvn site my mojo is not executed. :-(
>
> What did I miss? What should I also configure?
>
> Thanks for your hints.
>
> Libor
>
--
Eric Redmond
http://www.sonatype.com