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

Fix the "sonar.preview.includePlugins" property

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2
    • Component/s: None
    • Labels:
      None

      Description

      This property curently breaks the Preview mode if it is not set correctly (see below).

      For example, try to analyze a project with the following properties:

       -Dsonar.analysis.mode=preview -Dsonar.preview.includePlugins=java
      

      This will generate the following error:

      14:12:35 [ERROR] org/sonar/plugins/emailnotifications/api/EmailTemplate
      14:12:35 [INFO] ------------------------------------------------------------------------
      14:12:35 [INFO] BUILD FAILURE
      14:12:35 [INFO] ------------------------------------------------------------------------
      14:12:35 [INFO] Total time: 9.186s
      14:12:35 [INFO] Finished at: Fri Jan 24 14:12:35 CET 2014
      14:12:36 [INFO] Final Memory: 28M/382M
      14:12:36 [INFO] ------------------------------------------------------------------------
      14:12:36 [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.2:sonar (default-cli) on project fake-project-for-tests: Can not execute SonarQube analysis: org/sonar/plugins/emailnotifications/api/EmailTemplate: org.sonar.plugins.emailnotifications.api.EmailTemplate -> [Help 1]
      14:12:36 [ERROR] 
      14:12:36 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      14:12:36 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      14:12:36 [ERROR] 
      14:12:36 [ERROR] For more information about the errors and possible solutions, please read the following articles:
      14:12:36 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      

      In fact, the behaviour of this property should be to add plugins back to the analysis if they are listed in the "exclude" property.

        Attachments

          Activity

            People

            Assignee:
            julien.lancelot Julien Lancelot
            Reporter:
            fabemn OLD - Fabrice Bellingard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: