i have writed in my class DashBoardReportMojo :
*/**
* A small tutorial that shows how to create a report.
* @goal dashboard
* @execute phase="post-site" lifecycle="site"
*/
public class DashBoardReportMojo extends DashBoardMojo implements
MavenReport {
and i have this error :
[INFO] Preparing dashboard-report1:dashboard
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Lifecycle 'site' not found in plugin
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Lifecycle 'site' not
found in plugin
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:777)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:734)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:525)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Vincent Siveton wrote:
>
> Hi David,
>
> 2006/10/16, dvicente <[EMAIL PROTECTED]>:
>>
>> Hi,
>>
>> i try what you write below but it doesn't work but i have missed
>> something.
>>
>> I have my first class like this :
>>
>> /**
>> * A small tutorial that shows how to create a report.
>> * @goal generate
>> * @phase post-site
>> */
>> public class DashBoardMojo extends AbstractMojo
>>
>> after, i have my mojo report like this :
>>
>> /**
>> * A small tutorial that shows how to create a report.
>> * @goal dashboard
>> */
>> public class DashBoardReportMojo extends DashBoardMojo implements
>> MavenReport
>
> try adding @phase post-site
>
>> and at the end, i configure my report in my POM :
>>
>> <reporting>
>> <plugins>
>> ...
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>>
>> <artifactId>maven-dashboard-report-plugin1</artifactId>
>> <version>1.0</version>
>> </plugin>
>> ...
>> <plugins>
>> </reporting>
>>
>> i must do another thing ?
>
> No All sounds good.
>
> FYI "post-site" goal is from the "site" lifecycle not the "default"
> one. I guess you need also:
> * @goal dashboard
> * @execute phase="post-site" lifecycle="site"
>
> Let me know.
>
> Cheers,
>
> Vincent
>
>> thanks for your help
>>
>> David
>>
>> Vincent Siveton wrote:
>> >
>> > Hi,
>> >
>> > Try instead of the following:
>> > public class DashBoardReportMojo
>> > extends DashBoardMojo
>> > implements MavenReport
>> >
>> > DashBoardMojo uses post-site
>> >
>> > Cheers,
>> >
>> > Vincent
>> >
>> > 2006/10/9, dvicente <[EMAIL PROTECTED]>:
>> >>
>> >> nobody can help me ?
>> >>
>> >> http://www.nabble.com/-M2--dashboard-report-plugin-tf2342819.html
>> >> http://www.nabble.com/-M2--dashboard-report-plugin-tf2342819.html
>> >>
>> >> dvicente wrote:
>> >> >
>> >> > Hi,
>> >> >
>> >> > How to develop a maven report plugin which can be excuted as single
>> >> plugin
>> >> > with a specific goal and which can participate of site lifecycle
>> during
>> >> > post-site phase ?
>> >> >
>> >> > As my old messages about my dashboard report plugin, i want my
>> report
>> >> to
>> >> > be generated as the last one or during the post-site phase if it's
>> >> > impossible to order the report generation.
>> >> >
>> >> > Thanks for your help
>> >> >
>> >> > David
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/-m2--lifecycle-design-tf2350045.html#a6715330
>> >> Sent from the Maven Developers mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> 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]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-m2--lifecycle-design-tf2350045.html#a6832018
>> Sent from the Maven Developers mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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]
>
>
>
--
View this message in context:
http://www.nabble.com/-m2--lifecycle-design-tf2350045.html#a6833316
Sent from the Maven Developers mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]