SonarQubeCommunity / sonar-pdf-report

81 stars 81 forks source link

Is this project still being maintained? #39

Open WillNilges opened 4 years ago

WillNilges commented 4 years ago

I'm out here looking for a way to generate SonarQube reports and I stumbled across this repo. I see that it's.... pretty old. And all the links are dead.

Is anyone maintaining this anymore?

ThiamSoon commented 4 years ago

I'm looking for report generation as well. Hopefully someone response to this. or any other recommendations.

amedee commented 4 years ago

I'm a Quality Engineer at iText Software. This plugin has a dependency on iText version 2.1.4, which was released on 2008-11-11. That's a really, really old version, which is no longer supported and maintained, and of which we know that it contains bugs, security risks, and even possible copyright and/or license infringements. All of which have been resolved in later versions of iText.

I can, in good faith, really not recommend anyone to use such an old version of iText. It would be ironic to use SonarQube for good code quality, but then open the back door again with ancient software.

There is currently no incentive to pick up maintenance of this plugin.

amedee commented 4 years ago

I have asked our legal people what the options are to revive this plugin. Because licenses. I hope to get back with an answer soon.

sleroy commented 3 years ago

It should be possible to make a fork of the project, however mind that the paid version of SonarQube is providing the same feature. We may have a conflict with SonarSource.

sleroy commented 3 years ago

I made a working version of the plugin by gathering different attempts found on Github and built a working version here : https://github.com/sleroy/sonar-pdf-report

Compatible JDK 8 / SonarQube 8.0 . Tested on Linux. Not bug free tough.

amedee commented 3 years ago

I see that you have a dependency on iText version 5.5.12. I work for the company iText Software. This is me: https://www.linkedin.com/in/amedee/ Can I send you a direct email on the email address in the pom.xml? Because there's something important that I would like to help you with.

Kind regards,

Amedee Van Gasse QA Engineer iText Software

On Tue, Dec 15, 2020 at 11:05 PM Sylvain Leroy notifications@github.com wrote:

I made a working version of the plugin by gathering different attempts found on Github and built a working version here : https://github.com/sleroy/sonar-pdf-report

Compatible JDK 8 / SonarQube 8.0 . Tested on Linux. Not bug free tough.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SonarQubeCommunity/sonar-pdf-report/issues/39#issuecomment-745597153, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADRIWLFEKOFVE63JQZYD63SU7MTTANCNFSM4O4QWRAQ .

-- Amedee Van Gasse Email: amedee@vangasse.eu Calendar: amedee.vangasse@gmail.com Phone: +32 485 805 674 Twitter: @amedee

sleroy commented 3 years ago

@amedee sure, send me a mail through Github or with Linkedin https://www.linkedin.com/in/sylvain-leroy-byoskill

gitbhavesh07 commented 1 year ago

@sleroy Can I have the jar file for this plugin you created recently ? When I created a jar and ran in docker, am getting this error

2023-02-13 19:55:46 2023.02.13 14:25:46 WARN web[][o.s.c.a.AnnotationConfigApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@5a18cd76-org.sonar.server.plugins.ServerPluginManager': Initialization of bean failed; nested exception is java.lang.NullPointerException: Plugin key is missing from manifest 2023-02-13 19:55:46 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@5a18cd76-org.sonar.server.plugins.ServerPluginManager': Initialization of bean failed; nested exception is java.lang.NullPointerException: Plugin key is missing from manifest

Can you please help me on this?

geniusshiun commented 1 year ago

The license issue? You can use below mvn clean package -Dmaven.test.skip=true -Dlicense.skip=true

saravrcv commented 6 months ago

PDF report generation seems to be failing, any idea?. I installed sonar-pef-report.jar file into plugins (generated using jdk8).

I was running the below sonar-scanner command in my project directory.

sonar-scanner \ -Dsonar.projectKey=admin-portal \ -Dsonar.sources=. \ -Dsonar.host.url=http://localhost:9000 \ -Dsonar.token=my-sonar-token

Received the below error

INFO: ANALYSIS SUCCESSFUL, you can find the results at: http://localhost:9000/dashboard?id=admin-portal INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report INFO: More about the report processing at http://localhost:9000/api/ce/task?id=6158e139-0480-40d8-a51d-bb23366e123b INFO: Executing post-job 'com.cybage.sonar.report.pdf.batch.PDFPostJob' INFO: Executing decorator: PDF Report INFO: Plugin will try to guess the default LEAK Period INFO: Retrieving project info for admin-portal ERROR: Exception in initializeProject() org.sonarqube.ws.client.HttpException: Error 401 on http://localhost:9000/api/components/show?component=admin-portal : at org.sonarqube.ws.client.BaseResponse.failIfNotSuccessful(BaseResponse.java:36) at org.sonarqube.ws.client.BaseService.call(BaseService.java:51) at org.sonarqube.ws.client.BaseService.call(BaseService.java:46) at org.sonarqube.ws.client.components.ComponentsService.show(ComponentsService.java:111) at com.cybage.sonar.report.pdf.builder.ProjectBuilder.initializeProject(ProjectBuilder.java:67) at com.cybage.sonar.report.pdf.PDFReporter.getProject(PDFReporter.java:127) at com.cybage.sonar.report.pdf.PDFReporter.getReport(PDFReporter.java:66) at com.cybage.sonar.report.pdf.batch.PDFGenerator.writePdfReport(PDFGenerator.java:160) at com.cybage.sonar.report.pdf.batch.PDFGenerator.configureAndLaunchReports(PDFGenerator.java:121) at com.cybage.sonar.report.pdf.batch.PDFGenerator.execute(PDFGenerator.java:76) at com.cybage.sonar.report.pdf.batch.PDFPostJob.generatePdfs(PDFPostJob.java:118) at com.cybage.sonar.report.pdf.batch.PDFPostJob.execute(PDFPostJob.java:93) at org.sonar.scanner.postjob.PostJobWrapper.execute(PostJobWrapper.java:49) at org.sonar.scanner.postjob.PostJobsExecutor.execute(PostJobsExecutor.java:48) at org.sonar.scanner.postjob.PostJobsExecutor.execute(PostJobsExecutor.java:39) at org.sonar.scanner.scan.SpringProjectScanContainer.doAfterStart(SpringProjectScanContainer.java:181) at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:223)