SonarQube Runner
  1. SonarQube Runner
  2. SONARUNNER-46

sonar.sources property should be optional (in particular for parent modules)

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Sonar Runner fails whenever sonar.sources isn't set for a module. This doesn't feel right. In particular, parent modules often don't have any sources. Nevertheless, sonar.sources must be set to an empty value, or Sonar Runner will fail.

      The docs at http://docs.codehaus.org/display/SONAR/Analyzing+with+Sonar+Runner suggest the opposite: "A project that defines modules (or a module that defines sub-modules) cannot define a source code folder to be analyzed by Sonar."

        Activity

        Hide
        David RACODON added a comment -

        Hi Peter,

        Please, discuss your matter on the user mailing list before creating a JIRA ticket.
        Even if the 'sonar.sources' property is mandatory, this property is not taken into account at project level if the project defines module. See https://jira.codehaus.org/browse/SONARPLUGINS-2297 that is fixed in version 2.1 that will be released shortly.

        Regards,

        Show
        David RACODON added a comment - Hi Peter, Please, discuss your matter on the user mailing list before creating a JIRA ticket. Even if the 'sonar.sources' property is mandatory, this property is not taken into account at project level if the project defines module. See https://jira.codehaus.org/browse/SONARPLUGINS-2297 that is fixed in version 2.1 that will be released shortly. Regards,

          People

          • Assignee:
            Unassigned
            Reporter:
            Fabrice Bellingard
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: