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

Maven 3.3.3 unable to parse pom file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0, 3.3.0
    • Fix Version/s: 3.2.0, 3.3.0
    • Component/s: None
    • Labels:
      None

      Description

      Found via HDFS-13952.

      Reproducible on Maven 3.3.3, but not a problem for Maven 3.5.0 and above.
      I had to make the following change in order to compile. Looks like a problem after the ABFS merge.

      diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml
      index cd38376..4c2c267 100644
      --- a/hadoop-project/pom.xml
      +++ b/hadoop-project/pom.xml
      @@ -1656,7 +1656,9 @@
                 <artifactId>maven-javadoc-plugin</artifactId>
                 <version>${maven-javadoc-plugin.version}</version>
                 <configuration>
      -            <additionalOptions>-Xmaxwarns 10000</additionalOptions>
      +            <additionalOptions>
      +              <additionalOption>-Xmaxwarns 10000</additionalOption>
      +            </additionalOptions>
                 </configuration>
               </plugin>
               <plugin>
      

      Otherwise it gives me this error:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:jar (module-javadocs) on project hadoop-project: Unable to parse configuration of mojo org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:jar for parameter additionalOptions: Cannot assign configuration entry 'additionalOptions' with value '-Xmaxwarns 10000' of type java.lang.String to property of type java.lang.String[] -> [Help 1]

        Attachments

        1. HADOOP-15814.001.patch
          0.6 kB
          Wei-Chiu Chuang

          Issue Links

            Activity

              People

              • Assignee:
                weichiu Wei-Chiu Chuang
                Reporter:
                weichiu Wei-Chiu Chuang
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: