(no jira): Add missing 'read only' flag to internal injection parameter; add example of report.


git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1401631 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/maven/plugin/dependency/AbstractAnalyzeMojo.java b/src/main/java/org/apache/maven/plugin/dependency/AbstractAnalyzeMojo.java
index edd4d56..7b58cd1 100644
--- a/src/main/java/org/apache/maven/plugin/dependency/AbstractAnalyzeMojo.java
+++ b/src/main/java/org/apache/maven/plugin/dependency/AbstractAnalyzeMojo.java
@@ -19,6 +19,10 @@
  * under the License.
  */
 
+import java.io.File;
+import java.io.StringWriter;
+import java.util.Set;
+
 import org.apache.commons.lang.StringUtils;
 import org.apache.maven.artifact.Artifact;
 import org.apache.maven.plugin.AbstractMojo;
@@ -37,10 +41,6 @@
 import org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable;
 import org.codehaus.plexus.util.xml.PrettyPrintXMLWriter;
 
-import java.io.File;
-import java.io.StringWriter;
-import java.util.Set;
-
 /**
  * Analyzes the dependencies of this project and determines which are: used and declared; used and undeclared; unused
  * and declared.
@@ -73,7 +73,7 @@
      *
      * @since 2.2
      */
-    @Parameter( property = "analyzer", defaultValue = "default" )
+    @Parameter( property = "analyzer", defaultValue = "default", readonly = true)
     private String analyzer;
 
     /**
diff --git a/src/site/apt/usage.apt.vm b/src/site/apt/usage.apt.vm
index fcdd69c..049074d 100644
--- a/src/site/apt/usage.apt.vm
+++ b/src/site/apt/usage.apt.vm
@@ -676,3 +676,25 @@
 mvn dependency:get -Dartifact=org.apache.maven:maven-core:2.2.1:jar:sources -DremoteRepositories=http://repo1.maven.apache.org/maven2 -Ddest=/tmp/myfile.jar
 +-----+
 
+* The <<<dependency:analyze-report>>> Reporting Plugin
+
+  This mojo is used to include a report of the dependencies in the output of the <<<maven-site-plugin>>>.
+
++-------+
+ <reporting>
+   <plugins>
+    ...
+    <plugin>
+      <artifactId>maven-dependency-plugin</artifactId>
+      <version>2.5.1</version>
+      <reportSets>
+        <reportSet>
+          <reports>
+            <report>analyze-report</report>
+          </reports>
+        </reportSet>
+      </reportSets>
+    </plugin>
+   </plugins>
+  </reporting>
++-------+
\ No newline at end of file