Thanks, this part is helpfull...

On 10/26/06, pjungwir <[EMAIL PROTECTED]> wrote:


Hello,

@execute means that when the mojo is run, it should spawn a separate
lifecycle and run everything up to the given phase before running itself.
It's useful for running a mojo from the command line like "mvn
plugin:mojo,"
but it's problematic when you want to bind the mojo to a phase.

In your pom, you're binding your plugin to the site phase. So when maven
gets there, it processes your mojo. It sees the mojo's @execute tag, so it
spawns a separate lifecycle, runs everything from the beginning up to
post-site, then runs your mojo.

So first remove the @execute tag. Then either change the pom so you're
binding the mojo to the post-site phase, or use the @phase tag to set a
default phase of post-site, and don't give any <phase> in your pom.

Paul



kovalen pechaycaren wrote:
>
> Hi,
> I am writing a maven plugin to be run on other projects.  It needed to
be
> executed after the site phase.  For a multi-project (one parent and
> several
> modules), how to I configure the plugin to be run after reports have
been
> generated for all modules?
>
> The problem is that the plugin is being run DURING the site phase (which
> results in a number of invocation when only one for a project was
> expected) when i include the following in the parent pom:
>
> <plugin>
>     <groupId>com.accenture.collab.maven.plugin</groupId>
>     <artifactId>collab-quality</artifactId>
>     <version>0.1-SNAPSHOT</version>
>     <executions>
>      <execution>
>       <phase>site</phase>
>       <goals>
>        <goal>quality</goal>
>       </goals>
>      </execution>
>     </executions>
> </plugin>
> I have also included the following in my plugin's mojo, but no success:
> * @execute phase="post-site"
>
> Anyone can help?
>
> Thanks
> --
> Kovalen
>
>

--
View this message in context:
http://www.nabble.com/maven-plugin-execution-phase%3A-post-site--tf2513362.html#a7014966
Sent from the Maven - Users mailing list archive at Nabble.com.


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




--
Kovalen

Reply via email to