Uploaded image for project: 'Maven PMD Plugin'
  1. Maven PMD Plugin
  2. MPMD-235

Javadoc errors when building with java8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.8
    • 3.9.0
    • CPD, PMD
    • None

    Description

      For example

      [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.3:jar (attach-javadocs) on project maven-pmd-plugin: MavenReportException: Error while generating Javadoc:
      [INFO] [ERROR] Exit code: 1 - /home/andreas/projects/programming/apache.org/releases/maven-pmd-plugin/target/checkout/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdReport.java:286: warning: no description for @throws
      [INFO] [ERROR] * @throws java.io.IOException
      [INFO] [ERROR] ^
      [INFO] [ERROR] /home/andreas/projects/programming/apache.org/releases/maven-pmd-plugin/target/checkout/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.java:275: warning: no description for @param
      [INFO] [ERROR] * @param item
      [INFO] [ERROR] ^
      [INFO] [ERROR] /home/andreas/projects/programming/apache.org/releases/maven-pmd-plugin/target/checkout/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.java:277: warning: no @param for severity
      [INFO] [ERROR] protected abstract void printError( D item, String severity );
      [INFO] [ERROR] ^
      [INFO] [ERROR] /home/andreas/projects/programming/apache.org/releases/maven-pmd-plugin/target/checkout/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.java:282: warning: no description for @param
      [INFO] [ERROR] * @param analisysFile
      [INFO] [ERROR] ^
      [INFO] [ERROR] /home/andreas/projects/programming/apache.org/releases/maven-pmd-plugin/target/checkout/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.java:283: warning: no description for @throws
      [INFO] [ERROR] * @throws XmlPullParserException
      [INFO] [ERROR] ^
      [INFO] [ERROR] /home/andreas/projects/programming/apache.org/releases/maven-pmd-plugin/target/checkout/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.java:284: warning: no description for @throws
      [INFO] [ERROR] * @throws IOException
      [INFO] [ERROR] ^
      ...
      

      Just run with java8:

      mvn clean verify javadoc:javadoc

      Attachments

        Activity

          People

            adangel Andreas Dangel
            adangel Andreas Dangel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: