Build Plan Report
-----------------
Key: MNG-5148
URL: https://jira.codehaus.org/browse/MNG-5148
Project: Maven 2 & 3
Issue Type: Improvement
Components: Plugins and Lifecycle
Affects Versions: 3.0.3
Environment: Any
Reporter: Peter Johnson
Priority: Minor
Attachments: example.txt, LifecycleDebugLogger.patch
When you run "mvn -X" the very verbose output includes a dump of the build plan
in its infinite, gory detail. But there are two problems with that: a) it is
very verbose; b) you can't get the build plan without running the build. And
the latter is something that was really important for our development team
because with several levels of parent POMs and plugins being configured in many
of them it was difficult to get a good grasp of exactly what plugin goals would
run for which lifecycle phase. And that is what the report supplies.
This enhancement generates a short and quick build plan report that can be
requested without having to run the actual build. To do this report I
short-circuited the LifecycleDebugLogger.debugProjectPlan() method to write the
report only if -X was not present and -Dbuild.plan.report was set, after with
System.exit() is called. Yeah, I know, not really kosher but I wasn't up to
figuring out the correct way of adding this report.
I am attaching a patch and an example run for a package=jar project.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira