[JXR-132] Aggregator reports should not require modules to be installed/deployed.



git-svn-id: https://svn.apache.org/repos/asf/maven/jxr/trunk@1749581 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AggregatorJxrReport.java b/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AggregatorJxrReport.java
index e043ca1..dbad03a 100644
--- a/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AggregatorJxrReport.java
+++ b/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AggregatorJxrReport.java
@@ -19,14 +19,17 @@
  * under the License.
  */
 
+import org.apache.maven.plugins.annotations.Execute;
+import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
 
 /**
  * Generates a combined JXR report in an aggregating project.
- * 
+ *
  * @since 2.3
  */
 @Mojo( name = "aggregate", aggregator = true )
+@Execute( phase = LifecyclePhase.COMPILE )
 public class AggregatorJxrReport
     extends JxrReport
 {
diff --git a/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AggregatorJxrTestReport.java b/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AggregatorJxrTestReport.java
index 60533aa..791ce52 100644
--- a/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AggregatorJxrTestReport.java
+++ b/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AggregatorJxrTestReport.java
@@ -19,14 +19,17 @@
  * under the License.
  */
 
+import org.apache.maven.plugins.annotations.Execute;
+import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
 
 /**
  * Generates a combined JXR report for test code in an aggregating project.
- * 
+ *
  * @since 2.3
  */
 @Mojo( name = "test-aggregate", aggregator = true )
+@Execute( phase = LifecyclePhase.TEST_COMPILE )
 public class AggregatorJxrTestReport
     extends JxrTestReport
 {