Hello, We are trying to define a custom lifecycle for our nightly build. We basically want it to have the following phases:
1. run-build 2. process-build-results 3. report-build-results The idea is that we will have a separate nightly build maven project that runs the nightly build. In "run-build", we would use the maven invoker plugin to run "mvn deploy" on another project. In "process-build-results" we would parse the test results and put them in format suitable for emailing. In "report-build-results" we would send out an email with the test results and generate and deploy the maven site. I've tried doing this by creating a lifecycle.xml and components.xml in my nightly build plugin and enabling extensions for the plugin in my nightly build project. However, it does not seem to be working. It seems like I must be missing something, but I'm not sure what it is. Do you have any idea what it might be? I really could not find much documentation on how to create a custom lifecycle. I tried to follow what's in http://www.sonatype.com/books/maven-book/reference/writing-plugins-sect-custom-lifecycle.html . I've attached watered-down versions of the projects for the plugin and the nightly build, including their pom.xml files and the lifecycle.xml and components.xml. The error I am seeing is: >mvn com.ibm.mmi:mmi-nightly-build-plugin:nightly-build [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building nightly_build [INFO] task-segment: [com.ibm.mmi:mmi-nightly-build-plugin:nightly-build] [INFO] ------------------------------------------------------------------------ [INFO] Preparing mmi-nightly-build:nightly-build [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Unable to find lifecycle for phase 'report-build-results' [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 second [INFO] Finished at: Mon May 18 15:18:43 EDT 2009 [INFO] Final Memory: 4M/20M [INFO] ------------------------------------------------------------------------ Stack trace: [INFO] Trace org.apache.maven.BuildFailureException: Unable to find lifecycle for phase 'repo rt-build-results' at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getLifecycleForPh ase(DefaultLifecycleExecutor.java:1185) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecy cle(DefaultLifecycleExecutor.java:1028) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(Def aultLifecycleExecutor.java:1009) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:627) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:553) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:523) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:332) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:356) We're using maven 2.1.0 with Java 1.5.0 Thanks for any help you can provide. Jeffrey Hagelberg, Software Engineer XMeta Development IBM Software Group Phone: 978-899-2055 T/L:276-2055) Email:jnhag...@us.ibm.com