title: An error has occurred in JavaDocs report generation:Exit code: 1 - javadoc: error - invalid flag: -author
body: <p>Hi am facing some maven plugin issues, when am trying to deploy java-webservices project, My project was not downloading <code>"maven-javadoc-plugin : 2.4"</code> plugins, I manually installed <code>"maven-javadoc-plugin 2.5"</code> version jar into my .m2/repository. Am getting</p>
  
  <pre><code>"An error has occurred in JavaDocs report generation:Exit code: 1 -
  javadoc: error - invalid flag: -author".
  </code></pre>
  
  <p>Can anybody help me with this error,</p>
  
  <p><strong>child pom</strong></p>
  
  <pre><code>&lt;plugin&gt;
     &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
     &lt;artifactId&gt;maven-javadoc-plugin&lt;/artifactId&gt;
     &lt;executions&gt;
         &lt;execution&gt;
             &lt;goals&gt;
                 &lt;goal&gt;javadoc&lt;/goal&gt;
             &lt;/goals&gt;
             &lt;phase&gt;compile&lt;/phase&gt;
         &lt;/execution&gt;
     &lt;/executions&gt;
     &lt;configuration&gt;
         &lt;encoding&gt;UTF-8&lt;/encoding&gt;
         &lt;verbose&gt;false&lt;/verbose&gt;
         &lt;show&gt;public&lt;/show&gt;
         &lt;subpackages&gt;com.pubco.mp.emarket.services&lt;/subpackages&gt;
         &lt;doclet&gt;com.sun.jersey.wadl.resourcedoc.ResourceDoclet&lt;/doclet&gt;
         &lt;docletArtifacts&gt;
             &lt;docletArtifact&gt;
                 &lt;groupId&gt;com.sun.jersey.contribs&lt;/groupId&gt;
                 &lt;artifactId&gt;wadl-resourcedoc-doclet&lt;/artifactId&gt;
                 &lt;version&gt;${jersey-client.version}&lt;/version&gt;
             &lt;/docletArtifact&gt;
             &lt;docletArtifact&gt;
                 &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
                 &lt;artifactId&gt;jersey-server&lt;/artifactId&gt;
                 &lt;version&gt;${jersey-client.version}&lt;/version&gt;
             &lt;/docletArtifact&gt;
             &lt;docletArtifact&gt;
                 &lt;groupId&gt;xerces&lt;/groupId&gt;
                 &lt;artifactId&gt;xercesImpl&lt;/artifactId&gt;
                 &lt;version&gt;2.6.1&lt;/version&gt;
             &lt;/docletArtifact&gt;
         &lt;/docletArtifacts&gt;
         &lt;additionalparam&gt;-output ${project.build.outputDirectory}/resourcedoc.xml&lt;/additionalparam&gt;
     &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p><strong>Parent pom :</strong></p>
  
  <pre><code>&lt;plugin&gt;
     &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
     &lt;artifactId&gt;maven-javadoc-plugin&lt;/artifactId&gt;
     &lt;executions&gt;
         &lt;execution&gt;
             &lt;goals&gt;
                 &lt;goal&gt;javadoc&lt;/goal&gt;
             &lt;/goals&gt;
             &lt;phase&gt;compile&lt;/phase&gt;
         &lt;/execution&gt;
     &lt;/executions&gt;
     &lt;configuration&gt;
         &lt;encoding&gt;UTF-8&lt;/encoding&gt;
         &lt;verbose&gt;false&lt;/verbose&gt;
         &lt;show&gt;public&lt;/show&gt;
         &lt;subpackages&gt;com.pubco.mp.emarket.services&lt;/subpackages&gt;
         &lt;doclet&gt;com.sun.jersey.wadl.resourcedoc.ResourceDoclet&lt;/doclet&gt;
         &lt;docletArtifacts&gt;
             &lt;docletArtifact&gt;
                 &lt;groupId&gt;com.sun.jersey.contribs&lt;/groupId&gt;
                 &lt;artifactId&gt;wadl-resourcedoc-doclet&lt;/artifactId&gt;
                 &lt;version&gt;${jersey-client.version}&lt;/version&gt;
             &lt;/docletArtifact&gt;
             &lt;docletArtifact&gt;
                 &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
                 &lt;artifactId&gt;jersey-server&lt;/artifactId&gt;
                 &lt;version&gt;${jersey-client.version}&lt;/version&gt;
             &lt;/docletArtifact&gt;
             &lt;docletArtifact&gt;
                 &lt;groupId&gt;xerces&lt;/groupId&gt;
                 &lt;artifactId&gt;xercesImpl&lt;/artifactId&gt;
                 &lt;version&gt;2.6.1&lt;/version&gt;
             &lt;/docletArtifact&gt;
         &lt;/docletArtifacts&gt;
         &lt;additionalparam&gt;-output ${project.build.outputDirectory}/resourcedoc.xml&lt;/additionalparam&gt;
     &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p><strong>Super POM : has got the version number</strong> and am not sure how this super pom is getting downloaded .</p>
  
  <pre><code>&lt;maven-javadoc-plugin.version&gt;2.5&lt;/maven-javadoc-plugin.version&gt;
  
  &lt;pluginExecution&gt;
      &lt;pluginExecutionFilter&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-javadoc-plugin&lt;/artifactId&gt;
          &lt;versionRange&gt;[2.5,)&lt;/versionRange&gt;
          &lt;goals&gt;
              &lt;goal&gt;javadoc&lt;/goal&gt;
          &lt;/goals&gt;
      &lt;/pluginExecutionFilter&gt;
      &lt;action&gt;
          &lt;execute/&gt;
      &lt;/action&gt;
  &lt;/pluginExecution&gt;
  </code></pre>
  
  <p><strong>full error output :</strong></p>
  
  <pre><code>1 error
  [INFO]
  ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO]
  ------------------------------------------------------------------------
  [INFO] Total time: 23.959s
  [INFO] Finished at: Fri Oct 04 18:31:07 IST 2013
  [INFO] Final Memory: 16M/29M
  [INFO]
  ------------------------------------------------------------------------
  [ERROR] Failed to execute goal
  org.apache.maven.plugins:maven-javadoc-plugin:2.5:javadoc (default) on
  project mpemarketservices-war: An error has occurred in JavaDocs
  report generation:Exit code: 1 - javadoc: error - invalid flag: -author
  [ERROR]
  [ERROR] Command line was:C:\jdk1.6.0_13\jre\..\bin\javadoc.exe @options
  [ERROR] -&gt; [Help 1]   
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  
  [ERROR] [Help 1]
  http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  </code></pre>