sonar-runner

Sonar runner: JAVA_HOME exists but does not point to a valid Java home folder

不羁岁月 提交于 2019-12-06 03:56:34
问题 Situation : I installed Sonarqube on a Win XP 32-bit system. I set all paths as instructed. The server opens up well at localhost://9090. My JAVA_HOME is: C:\Program Files\Java\jdk1.7.0_60; Problem When I run, sonar-runner.bat, I get the following error: ERROR: Java_Home exists but does not point to a valid Java home folder. No "\bin\java.exe" file can be found here. What I tried: I added /bin to the path. I tried /jre, and then /jre/bin (Note: all of them contain the "/bin/java.exe" within

sonar runner SocketTimeoutException when running

风流意气都作罢 提交于 2019-12-06 02:21:55
问题 i was working with sonar and everything was working just fine. then after a month or so not using it i started receiving the following exception when running the sonar-runner.bat i am using the embedded h2 db server and use the default ports. INFO: Error stacktraces are turned on. INFO: Runner configuration file: C:\sonar\sonar-runner-2.2.2\conf\sonar-runner.properties INFO: Project configuration file: c:\eclipse\workspaces\projName\sonar-project.properties INFO: Default locale: "iw_IL",

C# analysis fails without .pdb files

别来无恙 提交于 2019-12-06 01:49:34
I'm trying out the new C# plugin v3.0 with SonarQube 4.2. According to plugin documentation, I need .pdb files to run analysis which includes FxCop rules, and indeed I get a failure message when executing sonar-runner if said .pdb files are not present in the output folder; FxCop exits with code 1536. The thing is, the analysis seems to require .pdb files for ALL the binnaries, and the output folder contains several dependencies in addition to my own compiled code. These are NuGet packages and I cannot find symbol files for all of them. So, is there any way I can have the analysis to skip the

SonarQube - how is it used

孤者浪人 提交于 2019-12-06 00:11:13
问题 I have a simple problem, with a simple answer probably, but I can't find what is it. We want to deploy SonarQube along with Checkstyle and some other tools, but we can't find out is it meant for a centralized, server deployment, or on each developer machine? All tutorials show installations on separate machines and being used in the localhost, while there is a public instance example, and the requirements and specs certainly look service-like. On the other hand, I'm not getting how do the

Is it possible to tell Sonar the project name from the command line?

徘徊边缘 提交于 2019-12-05 17:43:01
With each project created at my company, a new naming convention is used in Sonar. So some projects have their name as abbreviated, and some have their names as camel case, and some projects just have their names as words with spaces. If we could pass sonar-runner a project-name parameter, then that would let us have these values set by the integrations team (2-3 people), instead of the head of each project (10+ possible people). I feel like this may force us to create a Sonar rule for sonar properties, which is entirely too meta. Is it possible to call something like sonar-runner -

Sonar Runner:- INFO: Could not resolve file paths

烂漫一生 提交于 2019-12-05 14:46:04
I am trying to run Sonar Runner through CMD Line and want to scan all data through my Lcov file but after Running sonar Runner and it's showing Error in reading file .I crossed checked each and every path mentioned in file manually and its working fine.But still It's giving me the error as below:- >INFO: Integration Test Coverage Sensor is started INFO: Overall Coverage Sensor is started INFO: Analysing [C:\Tests\lcov.dat] INFO: Could not resolve 67 file paths in [C:\Trunk\lcov.dat], first unr esolved path: C:\Trunk\Web\App_Themes\Core\AppStart\UserAuth.js" I tried to run my Runner as below:-

Sonar scanner with Maven and JDK 11

[亡魂溺海] 提交于 2019-12-05 10:23:28
I can make Sonar scanner work with OpenJDK 8 but not with OpenJDK 11. The Maven command used is: mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify sonar:sonar -Dsonar.analysis.mode=preview -Dsonar.report.export.path=sonar-report.json -P ci The build fails with: [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar (default-cli) on project framework-bio: Execution default-cli of goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar failed: A required class was missing while executing org.sonarsource.scanner.maven:sonar-maven

How can I integrate Jacoco reports with SonarQube without using maven?

China☆狼群 提交于 2019-12-05 02:10:35
I used Jacoco eclipse plugin to measure unit test coverage and I was able to export a report using it. I want to integrate that report with sonar so I gave the path to it in the project properties file. My properties file looks like this # Required metadata sonar.projectKey=key sonar.projectName=name sonar.projectVersion=1.0 sonar.jacoco.reportPath=jacoco.exec sonar.tests=junit sonar.dynamicAnalysis=reuseReports sonar.java.coveragePlugin=jacoco sonar.jacoco.reportMissing.force.zero=true # Comma-separated paths to directories with sources (required) sonar.sources=src # Comma-separated paths to

SonarQube with C# plugin with MSBuild Runner does not take exclusions

孤街醉人 提交于 2019-12-04 23:45:32
问题 Currently I have an instance of SonarQube 5.1.2 with C# plugin and MSBuild runner in order to analyze a 1.200.000 LOC project. I intend to reduce the classes that are analyzed, I created a sonar.properties file with the line sonar.exclusions=**/Databases/**/*.* but after reading the log from the analysis, files inside the Databases folder were analyzed. following the instructions from Eric Starr, I set this simple exclusion rule in the call of the runner: "C:\sonarqube-5.1.2\bin\MSBuild

Calling Sonar from my java program

♀尐吖头ヾ 提交于 2019-12-04 13:55:55
I have installed sonar server on my localhost. And I am able to run and analyse the java project. Even i have installed sonar plugin on eclipse. But I want to run sonar from my java project(like simple java class) and should retrieve the sonar results and able to save it in database. I searched for the tutorial but unable to find the answer for this. Please anyone can give sample code or resource where I can gain knowledge to overcome this task. import javax.annotation.Resource; import org.sonar.wsclient.Host; import org.sonar.wsclient.Sonar; import org.sonar.wsclient.connectors