keep reports execution order in line with XML configuration, ie reports are executed before reportSets
git-svn-id: https://svn.apache.org/repos/asf/maven/shared/trunk@1465339 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java b/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java
index 14c841e..4f162cd 100644
--- a/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java
+++ b/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java
@@ -195,6 +195,11 @@
}
else
{
+ for ( String report : reportPlugin.getReports() )
+ {
+ goalsWithConfiguration.add( new GoalWithConf( report, reportPlugin.getConfiguration() ) );
+ }
+
for ( ReportSet reportSet : reportPlugin.getReportSets() )
{
for ( String report : reportSet.getReports() )
@@ -202,11 +207,6 @@
goalsWithConfiguration.add( new GoalWithConf( report, reportSet.getConfiguration() ) );
}
}
-
- for ( String report : reportPlugin.getReports() )
- {
- goalsWithConfiguration.add( new GoalWithConf( report, reportPlugin.getConfiguration() ) );
- }
}
List<MavenReportExecution> reports = new ArrayList<MavenReportExecution>();