From c045e1a78a1743d12420f177ce7fe217086aafc6 Mon Sep 17 00:00:00 2001 From: vmassol Date: Wed, 26 Nov 2003 15:00:10 +0000 Subject: [PATCH] Start of an Aggregator authoring guide git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114407 13f79535-47bb-0310-9956-ffa450edef68 --- dashboard/xdocs/authoring.xml | 73 ++++++++++++++++++++++++++++++++++ dashboard/xdocs/changes.xml | 3 ++ dashboard/xdocs/navigation.xml | 1 + 3 files changed, 77 insertions(+) create mode 100644 dashboard/xdocs/authoring.xml diff --git a/dashboard/xdocs/authoring.xml b/dashboard/xdocs/authoring.xml new file mode 100644 index 00000000..a2fdec36 --- /dev/null +++ b/dashboard/xdocs/authoring.xml @@ -0,0 +1,73 @@ + + + + + Maven Dashboard aggregator creation guide + Vincent Massol + + + +
+

+ The dashboard plugin supports custom aggregators. This page is a + tutorial explaining how to create a custom aggregator. +

+

+ An aggregator is a Jelly script that you plug in the dashboard plugin. + This Jelly script is called on each Maven subproject to extract a + single piece of data (ex: number of checkstyle errors, Clover test + coverage percentage, etc). +

+ +

+ The Jelly script must output the aggregator data for a project. + For example: +

+ + + + + + + + + + + + +]]> +

+ Note that the Jelly script has access to all of the Dashboard plugin + properties. +

+
+ +

+ Add the following properties to your master project's + project.properties: +

+ +
+ +

+ If there is no existing goal that generates the data you need, create + a custom goal in your top level maven.xml. Make sure your + subprojects inherit from this top level project (so that + maven.xml is inherited). +

+

+ If you think your aggregator could be useful to others, feel free to + donate it to the Maven project. +

+
+
+ +
diff --git a/dashboard/xdocs/changes.xml b/dashboard/xdocs/changes.xml index afbce242..adcae631 100644 --- a/dashboard/xdocs/changes.xml +++ b/dashboard/xdocs/changes.xml @@ -8,6 +8,9 @@ + + Added tutorial on how to create custom aggregators. + Added new maven.dashboard.report.showempty property. If set to false, the HTML report table will not contain entries for diff --git a/dashboard/xdocs/navigation.xml b/dashboard/xdocs/navigation.xml index 42378cdb..22f99cb8 100644 --- a/dashboard/xdocs/navigation.xml +++ b/dashboard/xdocs/navigation.xml @@ -11,6 +11,7 @@ +