Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-9718

Analysis fails when sonar.projectDate is set to empty

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6-M3, 6.6
    • Component/s: Scanner
    • Labels:
      None

      Description

      Analysis fails with obscure error message when sonar.projectDate is set to empty.

      Reproducer: run with any scanner, using -Dsonar.projectDate= (empty value), for example in a Maven project:

      mvn sonar:sonar -Dsonar.projectDate=
      

      Output:

      [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project example: null: MojoExecutionException: NullPointerException -> [Help 1]
      

        Attachments

          Activity

            People

            Assignee:
            julien.henry Julien Henry
            Reporter:
            janos.gyerik Janos Gyerik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: