Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15574

Suppress build error if there are no docs after excluding private annotations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.2.0, 3.1.1
    • None
    • None
    • Reviewed

    Description

      Seen in hadoop-ozone when building with the Maven hdds profile enabled.

      $ mvn clean install -DskipTests -DskipShade -Phdds -Pdist --projects hadoop-ozone/ozonefs
      ...
      [INFO] --- maven-javadoc-plugin:3.0.0-M1:jar (module-javadocs) @ hadoop-ozone-filesystem ---
      [INFO]
      ExcludePrivateAnnotationsStandardDoclet
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 13.223 s
      [INFO] Finished at: 2018-06-28T19:46:49+09:00
      [INFO] Final Memory: 122M/1196M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.0-M1:jar (module-javadocs) on project hadoop-ozone-filesystem: MavenReportException: Error while generating Javadoc:
      [ERROR] Exit code: 1 - Picked up _JAVA_OPTIONS: -Duser.language=en
      [ERROR] java.lang.ArrayIndexOutOfBoundsException: 0
      [ERROR] 	at com.sun.tools.doclets.formats.html.ConfigurationImpl.setTopFile(ConfigurationImpl.java:537)
      [ERROR] 	at com.sun.tools.doclets.formats.html.ConfigurationImpl.setSpecificDocletOptions(ConfigurationImpl.java:309)
      [ERROR] 	at com.sun.tools.doclets.internal.toolkit.Configuration.setOptions(Configuration.java:560)
      [ERROR] 	at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:134)
      [ERROR] 	at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:82)
      [ERROR] 	at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:80)
      [ERROR] 	at com.sun.tools.doclets.standard.Standard.start(Standard.java:39)
      [ERROR] 	at org.apache.hadoop.classification.tools.ExcludePrivateAnnotationsStandardDoclet.start(ExcludePrivateAnnotationsStandardDoclet.java:41)
      [ERROR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      [ERROR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [ERROR] 	at java.lang.reflect.Method.invoke(Method.java:498)
      [ERROR] 	at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:310)
      [ERROR] 	at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:189)
      [ERROR] 	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:366)
      [ERROR] 	at com.sun.tools.javadoc.Start.begin(Start.java:219)
      [ERROR] 	at com.sun.tools.javadoc.Start.begin(Start.java:205)
      [ERROR] 	at com.sun.tools.javadoc.Main.execute(Main.java:64)
      [ERROR] 	at com.sun.tools.javadoc.Main.main(Main.java:54)
      

      Attachments

        1. HDDS-202.1.patch
          1 kB
          Takanobu Asanuma

        Activity

          People

            tasanuma Takanobu Asanuma
            tasanuma Takanobu Asanuma
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: