[JXR-131] Reports 'jxr' and 'test-jxr' do not contain generated sources.



git-svn-id: https://svn.apache.org/repos/asf/maven/jxr/trunk@1749579 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrReport.java b/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrReport.java
index 25f40c4..dc76b16 100644
--- a/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrReport.java
+++ b/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrReport.java
@@ -19,16 +19,18 @@
  * under the License.
  */
 
-import org.apache.maven.plugins.annotations.Mojo;
-import org.apache.maven.plugins.annotations.Parameter;
-import org.apache.maven.project.MavenProject;
-
 import java.io.File;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
 import java.util.Locale;
 
+import org.apache.maven.plugins.annotations.Execute;
+import org.apache.maven.plugins.annotations.LifecyclePhase;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.apache.maven.project.MavenProject;
+
 /**
  * Creates an html-based, cross referenced version of Java source code
  * for a project.
@@ -37,6 +39,7 @@
  * @version $Id$
  */
 @Mojo( name = "jxr" )
+@Execute( phase = LifecyclePhase.GENERATE_SOURCES )
 public class JxrReport
     extends AbstractJxrReport
 {
diff --git a/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrTestReport.java b/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrTestReport.java
index f3ad1f1..3418f85 100644
--- a/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrTestReport.java
+++ b/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrTestReport.java
@@ -19,15 +19,17 @@
  * under the License.
  */
 
-import org.apache.maven.plugins.annotations.Mojo;
-import org.apache.maven.plugins.annotations.Parameter;
-import org.apache.maven.project.MavenProject;
-
 import java.io.File;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Locale;
 
+import org.apache.maven.plugins.annotations.Execute;
+import org.apache.maven.plugins.annotations.LifecyclePhase;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.apache.maven.project.MavenProject;
+
 /**
  * Creates an html-based, cross referenced version of Java source code
  * for a project's test sources.
@@ -37,6 +39,7 @@
  * @version $Id$
  */
 @Mojo( name = "test-jxr" )
+@Execute( phase = LifecyclePhase.GENERATE_TEST_SOURCES )
 public class JxrTestReport
     extends AbstractJxrReport
 {