30
30
import java .util .Locale ;
31
31
32
32
import org .apache .maven .doxia .sink .Sink ;
33
- import org .apache .maven .doxia .siterenderer .Renderer ;
34
33
import org .apache .maven .plugins .invoker .model .BuildJob ;
35
34
import org .apache .maven .plugins .invoker .model .io .xpp3 .BuildJobXpp3Reader ;
36
35
import org .apache .maven .plugins .annotations .Component ;
37
36
import org .apache .maven .plugins .annotations .Mojo ;
38
37
import org .apache .maven .plugins .annotations .Parameter ;
39
- import org .apache .maven .project .MavenProject ;
40
38
import org .apache .maven .reporting .AbstractMavenReport ;
41
39
import org .apache .maven .reporting .MavenReportException ;
42
40
import org .codehaus .plexus .i18n .I18N ;
@@ -58,32 +56,12 @@ public class InvokerReport
58
56
extends AbstractMavenReport
59
57
{
60
58
61
- /**
62
- * The Maven Project.
63
- */
64
- @ Parameter ( defaultValue = "${project}" , readonly = true , required = true )
65
- protected MavenProject project ;
66
-
67
- /**
68
- * Doxia Site Renderer component.
69
- */
70
- @ Component
71
- protected Renderer siteRenderer ;
72
-
73
59
/**
74
60
* Internationalization component.
75
61
*/
76
62
@ Component
77
63
protected I18N i18n ;
78
64
79
- /**
80
- * The output directory for the report. Note that this parameter is only evaluated if the goal is run directly from
81
- * the command line. If the goal is run indirectly as part of a site generation, the output directory configured in
82
- * the Maven Site Plugin is used instead.
83
- */
84
- @ Parameter ( defaultValue = "${project.reporting.outputDirectory}" , required = true )
85
- protected File outputDirectory ;
86
-
87
65
/**
88
66
* Base directory where all build reports have been written to.
89
67
*/
@@ -185,6 +163,7 @@ protected void executeReport( Locale locale )
185
163
186
164
// detail tests table header
187
165
sink .table ();
166
+ sink .tableRows ( null , false );
188
167
189
168
sink .tableRow ();
190
169
// -------------------------------------------
@@ -202,6 +181,7 @@ protected void executeReport( Locale locale )
202
181
renderBuildJob ( buildJob );
203
182
}
204
183
184
+ sink .tableRows_ ();
205
185
sink .table_ ();
206
186
207
187
sink .body_ ();
@@ -228,6 +208,8 @@ private void constructSummarySection( List<? extends BuildJob> buildJobs, Locale
228
208
// ------------------------------------------------------------------------
229
209
230
210
sink .table ();
211
+ sink .tableRows ( null , false );
212
+
231
213
sink .tableRow ();
232
214
233
215
sinkTableHeader ( sink , getText ( locale , "report.invoker.summary.number" ) );
@@ -283,6 +265,8 @@ else if ( BuildJob.Result.SKIPPED.equals( buildJob.getResult() ) )
283
265
sinkCell ( sink , secondsFormat .format ( totalTime / number ) );
284
266
285
267
sink .tableRow_ ();
268
+
269
+ sink .tableRows_ ();
286
270
sink .table_ ();
287
271
288
272
}
@@ -337,21 +321,6 @@ private String getFormattedName( String name, String description )
337
321
return nameAndDescriptionFormat .format ( new Object [] { name , description } );
338
322
}
339
323
340
- protected String getOutputDirectory ()
341
- {
342
- return outputDirectory .getAbsolutePath ();
343
- }
344
-
345
- protected MavenProject getProject ()
346
- {
347
- return project ;
348
- }
349
-
350
- protected Renderer getSiteRenderer ()
351
- {
352
- return siteRenderer ;
353
- }
354
-
355
324
public String getDescription ( Locale locale )
356
325
{
357
326
return getText ( locale , "report.invoker.result.description" );
0 commit comments