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

Reply via email to