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

MavenProject may be missing when project key is overriden

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 4.5.1
    • Fix Version/s: None
    • Component/s: Scanner
    • Labels:
      None

      Description

      On a Maven project if someone try to override project key using -Dsonar.projectKey=xxx then all BatchComponents expecting a MevnProject in their constructor will fail.
      This is because we are relying on convention that key is <groupId>:<artifactId> to inject correct MavenProject (see MavenProjectBuilder).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              duarte.meneses Duarte Meneses
              Reporter:
              henryju OLD - Julien HENRY
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: