Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26557

The configuration of maven-checkstyle-plugin is error for mvn install

    XMLWordPrintableJSON

Details

    • Dependency upgrade
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.2.0, 2.3.0
    • None
    • Build
    • None
    • Important

    Description

      When I build the Spark with the maven script:

      mvn install -Psparkr -Pyarn -Phadoop-2.7 -Dhadoop.version=2.7.3  -Phive-thriftserver -Pnetlib-lgpl -Pspark-ganglia-lgpl -DskipTests -Denforcer.skip=true  
      

      There a error:

      Error

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (default) on project spark-parent_2.11: Unable to parse configuration of mojo org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check for parameter sourceDirectories: Cannot assign configuration entry 'sourceDirectories' with value
      ' /../../main/java, /../../main/scala' of type java.lang.String to property of type java.util.List -> [Help 1]

      Then I check the doc for maven-checkstyle-plugin:2.17: http://maven.apache.org/components/plugins/maven-checkstyle-plugin/

      For Major Version Upgrade to version 3.0.0,we could change the config "sourceDirectory" to "sourceDirectories",but the version we set is 2.17.

      There are two solutions,
      1.set sourceDirectories to sourceDirectory;
      2.upgrate version of maven-checkstyle-plugin

      Attachments

        Activity

          People

            Unassigned Unassigned
            southernriver chenliang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: