Unfortunately it does NOT work.

On 6/25/07, Arnaud Bailly <[EMAIL PROTECTED]> wrote:

"Libor Kramoliš" <[EMAIL PROTECTED]> writes:

> 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?
>
Hello,
Not sure (didn't try it) but I think that you should attach your mojo
configuration in
the reporting section, not the build section.

Regards,

--
OQube < software engineering \ génie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.com

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


Reply via email to