SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-3020

Make the plugin compatible with SonarQube 3.6

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: PDF-REPORT-1.3.1
    • Fix Version/s: PDF-REPORT-1.3.2
    • Component/s: PDF Report
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Update the plugin to make it compatible with Issues.

        Issue Links

          Activity

          Hide
          Tomasz Zieleniewski added a comment -

          Hi,

          I still encounter this issue.

          I use SonarQube 3.7.3.
          I pass -Dsonar.pdf.username=.. -Dsonar.pdf.password=.. paramaters.
          A "Force user authentication" options is set to false in the SonarQube configuration.
          "Execute Analysis" and "Execute Local Analysis" global permissions have "Anyone" group assigned in the SonarQube configuration.

          [INFO] [17:14:57.605] Executing post-job class org.sonar.report.pdf.batch.PDFPostJob
          [INFO] [17:14:57.607] Execute org.codehaus.sonar-plugins.pdf-report:sonarpdf-maven-plugin:1.3.2:generate...
          [INFO] ------------------------------------------------------------------------
          [INFO] Building vpabx-conf :: eip-generator :: 1.0.2-SNAPSHOT
          [INFO] task-segment: [org.codehaus.sonar-plugins.pdf-report:sonarpdf-maven-plugin:1.3.2:generate] (aggregator-style)
          [INFO] ------------------------------------------------------------------------
          [INFO] [sonarpdf:generate

          {execution: default-cli}

          ]
          [INFO] Branch branch-1.0 selected
          [INFO] Team workbook report type selected
          [INFO] Retrieving project info for ...
          [ERROR] Can´t access to Sonar or project doesn't exist on Sonar instance. HTTP KO to https://...&depth=0&format=xml
          java.io.IOException: Can´t access to Sonar or project doesn't exist on Sonar instance.
          at org.sonar.report.pdf.util.SonarAccess.getUrlAsDocument(SonarAccess.java:132)
          at org.sonar.report.pdf.entity.Project.initializeProject(Project.java:98)
          at org.sonar.report.pdf.PDFReporter.getProject(PDFReporter.java:114)
          at org.sonar.report.pdf.PDFReporter.getReport(PDFReporter.java:71)
          at org.sonar.report.pdf.mojo.SonarPDFMojo.execute(SonarPDFMojo.java:162)
          at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.sonar.plugins.maven.DefaultMavenPluginExecutor.concreteExecuteMaven2(DefaultMavenPluginExecutor.java:141)
          at org.sonar.plugins.maven.DefaultMavenPluginExecutor.concreteExecute(DefaultMavenPluginExecutor.java:109)
          at org.sonar.plugins.maven.DefaultMavenPluginExecutor.execute(DefaultMavenPluginExecutor.java:71)
          at org.sonar.plugins.maven.DefaultMavenPluginExecutor.execute(DefaultMavenPluginExecutor.java:58)
          at org.sonar.batch.phases.PostJobsExecutor.executeMavenPlugin(PostJobsExecutor.java:91)
          at org.sonar.batch.phases.PostJobsExecutor.execute(PostJobsExecutor.java:75)
          at org.sonar.batch.phases.PostJobsExecutor.execute(PostJobsExecutor.java:64)
          at org.sonar.batch.phases.PhaseExecutor.execute(PhaseExecutor.java:133)
          at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:142)
          at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
          at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
          at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:187)
          at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:182)
          at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:175)
          at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
          at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
          at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:57)
          at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:45)
          at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:82)
          at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
          at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
          at org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapContainer.java:156)
          at org.sonar.batch.bootstrap.BootstrapContainer.doAfterStart(BootstrapContainer.java:144)
          at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
          at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
          at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:92)
          at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:74)
          at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:45)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
          at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
          at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
          at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
          at org.sonar.runner.api.Runner.execute(Runner.java:90)
          at org.sonar.maven.SonarMojo.execute(SonarMojo.java:173)
          at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
          at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:98)
          at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:79)
          at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:88)
          at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
          at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
          at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
          at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
          at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
          at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
          [INFO] [17:14:58.452] Execute org.codehaus.sonar-plugins.pdf-report:sonarpdf-maven-plugin:1.3.2:generate done: 845 ms

          Show
          Tomasz Zieleniewski added a comment - Hi, I still encounter this issue. I use SonarQube 3.7.3. I pass -Dsonar.pdf.username=.. -Dsonar.pdf.password=.. paramaters. A "Force user authentication" options is set to false in the SonarQube configuration. "Execute Analysis" and "Execute Local Analysis" global permissions have "Anyone" group assigned in the SonarQube configuration. [INFO] [17:14:57.605] Executing post-job class org.sonar.report.pdf.batch.PDFPostJob [INFO] [17:14:57.607] Execute org.codehaus.sonar-plugins.pdf-report:sonarpdf-maven-plugin:1.3.2:generate... [INFO] ------------------------------------------------------------------------ [INFO] Building vpabx-conf :: eip-generator :: 1.0.2-SNAPSHOT [INFO] task-segment: [org.codehaus.sonar-plugins.pdf-report:sonarpdf-maven-plugin:1.3.2:generate] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] [sonarpdf:generate {execution: default-cli} ] [INFO] Branch branch-1.0 selected [INFO] Team workbook report type selected [INFO] Retrieving project info for ... [ERROR] Can´t access to Sonar or project doesn't exist on Sonar instance. HTTP KO to https://...&depth=0&format=xml java.io.IOException: Can´t access to Sonar or project doesn't exist on Sonar instance. at org.sonar.report.pdf.util.SonarAccess.getUrlAsDocument(SonarAccess.java:132) at org.sonar.report.pdf.entity.Project.initializeProject(Project.java:98) at org.sonar.report.pdf.PDFReporter.getProject(PDFReporter.java:114) at org.sonar.report.pdf.PDFReporter.getReport(PDFReporter.java:71) at org.sonar.report.pdf.mojo.SonarPDFMojo.execute(SonarPDFMojo.java:162) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.sonar.plugins.maven.DefaultMavenPluginExecutor.concreteExecuteMaven2(DefaultMavenPluginExecutor.java:141) at org.sonar.plugins.maven.DefaultMavenPluginExecutor.concreteExecute(DefaultMavenPluginExecutor.java:109) at org.sonar.plugins.maven.DefaultMavenPluginExecutor.execute(DefaultMavenPluginExecutor.java:71) at org.sonar.plugins.maven.DefaultMavenPluginExecutor.execute(DefaultMavenPluginExecutor.java:58) at org.sonar.batch.phases.PostJobsExecutor.executeMavenPlugin(PostJobsExecutor.java:91) at org.sonar.batch.phases.PostJobsExecutor.execute(PostJobsExecutor.java:75) at org.sonar.batch.phases.PostJobsExecutor.execute(PostJobsExecutor.java:64) at org.sonar.batch.phases.PhaseExecutor.execute(PhaseExecutor.java:133) at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:142) at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92) at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77) at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:187) at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:182) at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:175) at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92) at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77) at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:57) at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:45) at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:82) at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92) at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77) at org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapContainer.java:156) at org.sonar.batch.bootstrap.BootstrapContainer.doAfterStart(BootstrapContainer.java:144) at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92) at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77) at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:92) at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:74) at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:45) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87) at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75) at java.security.AccessController.doPrivileged(Native Method) at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69) at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50) at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102) at org.sonar.runner.api.Runner.execute(Runner.java:90) at org.sonar.maven.SonarMojo.execute(SonarMojo.java:173) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:98) at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:79) at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:88) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [17:14:58.452] Execute org.codehaus.sonar-plugins.pdf-report:sonarpdf-maven-plugin:1.3.2:generate done: 845 ms
          Hide
          Antonio Manuel Muñiz Martín added a comment -

          Hello,

          Your issue is not related to this one. Could you create an additional ticket for this?

          Show
          Antonio Manuel Muñiz Martín added a comment - Hello, Your issue is not related to this one. Could you create an additional ticket for this?
          Hide
          Tomasz Zieleniewski added a comment -

          When I create an Issue a don't see a SonarPlugins project, which one should I use instead?

          Show
          Tomasz Zieleniewski added a comment - When I create an Issue a don't see a SonarPlugins project, which one should I use instead?
          Hide
          Antonio Manuel Muñiz Martín added a comment -

          I forgot that non-members has no rights to create issues in Sonar Plugins project.
          I have created it: https://jira.codehaus.org/browse/SONARPLUGINS-3415

          Show
          Antonio Manuel Muñiz Martín added a comment - I forgot that non-members has no rights to create issues in Sonar Plugins project. I have created it: https://jira.codehaus.org/browse/SONARPLUGINS-3415
          Hide
          Tomasz Zieleniewski added a comment -

          Thanks and all the best!

          Show
          Tomasz Zieleniewski added a comment - Thanks and all the best!

            People

            • Assignee:
              Antonio Manuel Muñiz Martín
              Reporter:
              David RACODON
            • Votes:
              11 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: