From 6cde04d3b72dc299cd9bc791ed450f2bf17fb737 Mon Sep 17 00:00:00 2001
From: vmassol
Date: Fri, 30 Apr 2004 09:05:49 +0000
Subject: [PATCH] Updated plugin tests to verify we can generate the dashboard
report by using the multiproject:site goal. Also updated documentation
accordingly.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115094 13f79535-47bb-0310-9956-ffa450edef68
---
dashboard/plugin.jelly | 56 ++++++++++---------
dashboard/src/plugin-test/maven.xml | 3 +-
dashboard/src/plugin-test/project.properties | 5 ++
.../subproject1/project.properties | 2 +
.../src/plugin-test/subproject1/project.xml | 1 +
.../subproject2/project.properties | 1 +
.../src/plugin-test/subproject2/project.xml | 4 +-
dashboard/xdocs/aggregators.xml | 1 +
dashboard/xdocs/authoring.xml | 1 +
dashboard/xdocs/changes.xml | 5 ++
dashboard/xdocs/goals.xml | 2 +-
dashboard/xdocs/index.xml | 52 ++++++++++-------
dashboard/xdocs/navigation.xml | 1 +
dashboard/xdocs/properties.xml | 2 +-
14 files changed, 84 insertions(+), 52 deletions(-)
diff --git a/dashboard/plugin.jelly b/dashboard/plugin.jelly
index d7faebd1..75c44c6d 100644
--- a/dashboard/plugin.jelly
+++ b/dashboard/plugin.jelly
@@ -185,31 +185,32 @@
========================================================================
-->
-
-
-
-
-
-
-
-
-
- ${maven.dashboard.aggregators}
-
-
-
+
+
+
+
+
+
+
+
+
+ ${maven.dashboard.aggregators}
+
+
+
+
Generating data for aggregator [${aggregatorName}]
@@ -242,15 +243,16 @@
-
-
-
-
-
+
+
+
+
+
+
diff --git a/dashboard/src/plugin-test/maven.xml b/dashboard/src/plugin-test/maven.xml
index e12aec69..dd5c0d5d 100644
--- a/dashboard/src/plugin-test/maven.xml
+++ b/dashboard/src/plugin-test/maven.xml
@@ -34,7 +34,8 @@
-
+
+
diff --git a/dashboard/src/plugin-test/project.properties b/dashboard/src/plugin-test/project.properties
index 9ad839bf..cd67fe8d 100644
--- a/dashboard/src/plugin-test/project.properties
+++ b/dashboard/src/plugin-test/project.properties
@@ -28,3 +28,8 @@ offline=true
maven.multiproject.basedir=${basedir}
maven.multiproject.includes=*/project.xml
maven.multiproject.excludes=
+
+# Turn off these properties are we're using the multiproject plugin to
+# generate the dashboard
+maven.dashboard.rungoals = false
+maven.dashboard.runreactor = false
diff --git a/dashboard/src/plugin-test/subproject1/project.properties b/dashboard/src/plugin-test/subproject1/project.properties
index b2c5c957..3ea21cdb 100644
--- a/dashboard/src/plugin-test/subproject1/project.properties
+++ b/dashboard/src/plugin-test/subproject1/project.properties
@@ -22,3 +22,5 @@ maven.xdoc.date=left
maven.checkstyle.header.file = ${basedir}/../LICENSE.txt
maven.dashboard.aggregators = csall,cserrors,cswarnings,clovertpc,cloverloc,cloverncloc,junittests,junitpassrate,junitfailures,juniterrors
+
+maven.clover.report.xml = true
diff --git a/dashboard/src/plugin-test/subproject1/project.xml b/dashboard/src/plugin-test/subproject1/project.xml
index 3c9f556d..9905f365 100644
--- a/dashboard/src/plugin-test/subproject1/project.xml
+++ b/dashboard/src/plugin-test/subproject1/project.xml
@@ -36,5 +36,6 @@
maven-checkstyle-plugin
maven-clover-plugin
+ maven-junit-report-plugin
diff --git a/dashboard/src/plugin-test/subproject2/project.properties b/dashboard/src/plugin-test/subproject2/project.properties
index b2c5c957..8808cdd1 100644
--- a/dashboard/src/plugin-test/subproject2/project.properties
+++ b/dashboard/src/plugin-test/subproject2/project.properties
@@ -22,3 +22,4 @@ maven.xdoc.date=left
maven.checkstyle.header.file = ${basedir}/../LICENSE.txt
maven.dashboard.aggregators = csall,cserrors,cswarnings,clovertpc,cloverloc,cloverncloc,junittests,junitpassrate,junitfailures,juniterrors
+maven.dashboard.rungoals = true
diff --git a/dashboard/src/plugin-test/subproject2/project.xml b/dashboard/src/plugin-test/subproject2/project.xml
index f5779656..7c57319c 100644
--- a/dashboard/src/plugin-test/subproject2/project.xml
+++ b/dashboard/src/plugin-test/subproject2/project.xml
@@ -22,6 +22,8 @@
test-maven-dashboard-plugin-subproject2
Maven Dashboard plugin test - Subproject2
- maven-checkstyle-plugin
+
diff --git a/dashboard/xdocs/aggregators.xml b/dashboard/xdocs/aggregators.xml
index 81b7dac6..c75fabee 100644
--- a/dashboard/xdocs/aggregators.xml
+++ b/dashboard/xdocs/aggregators.xml
@@ -1,4 +1,5 @@
+
-
Maven Dashboard plugin goals
diff --git a/dashboard/xdocs/index.xml b/dashboard/xdocs/index.xml
index 5e073ccf..1667fc32 100644
--- a/dashboard/xdocs/index.xml
+++ b/dashboard/xdocs/index.xml
@@ -84,32 +84,42 @@
maven xdoc to transform it into an HTML file.
-
-
- Only use this solution if you're already familiar with the
- dashboard plugin.
-
+
- If you are already running a custom reactor you have the possibility
- to integrate the dashboard plugin in your reactor build. You would
- do this to shorten the build time.
+ In your master project, add a maven-dashboard-report
+ report entry:
+
+ [...]
+ maven-dashboard-plugin
+
+]]>
- To do this, you need to add the dashboard:report-single
- goal to the list of goals being run by your reactor. The best option
- is to ensure this goal is run after the other goals generating the
- report artifacts needed by the dashboard aggregators you're running.
- In order to prevent the dashboard:report-single goal from
- automatically calling the report artifact goals, you'll need to add
- the following property: maven.dashboard.rungoals = false.
-
- At the master project level, you'll simply need to add a report entry
- as described above in 'Solution 1'. You'll also need to add the
- following property: maven.dashboard.runreactor = false.
- This property prevents the dashboard plugin from automatically calling
- the dashboard reactor.
+ Add the following 3 properties to your master project:
+
+
+ Then generate the site by running the multiproject:site
+ goal.
+
+