sonarqube

Error while executing Sonarqube analysis “ Insufficient privileges”

谁说胖子不能爱 提交于 2019-12-21 19:17:54
问题 I am trying to analyse java code through sonarqube. We have created a sonarqube server in our local environment and not using sonar cloud. I tried using sonar maven plugin initially form this link Sonar-Maven Plugin However I faced an "Insufficient privileges" error. [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 22.185 s [INFO] Finished at: 2017-09-18T13:04:47+10:00 [INFO] Final Memory: 64M/589M [INFO] -----------------

Sonarqube authorization - how to authorize with sonar-maven-plugin when sonar.forceAuthentication is enabled

与世无争的帅哥 提交于 2019-12-21 12:01:06
问题 I've got sonarqube 6.5 with default configs. When sonar.forceAuthentication flag is set to false, I can create and analyse project through command given below. mvn sonar:sonar -Dsonar.host.url=https://mySonarHost/sonar -Dsonar.login=mySonarUserKey When I enable sonar.forceAuthentication parameter (sonar.forceAuthentication=true), I can't analyse project. I always get maven error: [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on

Setting up SonarQube on AWS using EC2

会有一股神秘感。 提交于 2019-12-21 11:32:08
问题 Trying to setup SonarQube on EC2 using what should be basic install settings. List item Setup a standard EC2 AWS LINUX Ami attached to M4 large SSH into EC2 instance Install JAVA Set to use JAVA8 wget https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-6.4.zip unzip into the /etc dir run sudo ./sonar.sh start Instance starts But when I try to go to the app it never comes up when I try either the IPv4 Public IP 187.187.87.87:9000 (ex not real IP) or try ec2-134-73-134-114.compute

LDAP authenticated user gets deleted from the group created in sonar for every fresh login to sonar

。_饼干妹妹 提交于 2019-12-21 10:55:54
问题 Authentication for Sonar (3.5.1) with LDAP plugin (1.3-SNAPSHOT) is working fine. But the authorization for projects is not working with groups. From the Admin user i am able to map the LDAP user to a group created in Sonar UI. But everytime the user tries to login to Sonar, the users already mapped to a group gets deleted from the group. Has anyone faced the same issue already? is that a problem with ldap version? or do i need to make configuration changes? 回答1: It is working fine now.

SonarRunner can't find sonar.projectKey, sonar.projectName, sonar.projectVersion, sonar.sources

◇◆丶佛笑我妖孽 提交于 2019-12-21 09:32:54
问题 I am attempting to get Jenkins to run Sonar as a post-build step. Jenkins runs SonarRunner [1] but this fails with: ERROR: Error during Sonar runner execution ERROR: Unable to execute Sonar ERROR: Caused by: You must define the following mandatory properties for 'Unknown': sonar.projectKey, sonar.projectName, sonar.projectVersion, sonar.sources If I run mvn sonar:sonar [2] instead it works fine. It almost sounds like SonarRunner is ignoring pom.xml. How do I get SonarRunner to pick up these

SonarRunner can't find sonar.projectKey, sonar.projectName, sonar.projectVersion, sonar.sources

百般思念 提交于 2019-12-21 09:30:48
问题 I am attempting to get Jenkins to run Sonar as a post-build step. Jenkins runs SonarRunner [1] but this fails with: ERROR: Error during Sonar runner execution ERROR: Unable to execute Sonar ERROR: Caused by: You must define the following mandatory properties for 'Unknown': sonar.projectKey, sonar.projectName, sonar.projectVersion, sonar.sources If I run mvn sonar:sonar [2] instead it works fine. It almost sounds like SonarRunner is ignoring pom.xml. How do I get SonarRunner to pick up these

Sonar - Unable to load component class org.sonar.scanner.scan.ProjectLock

狂风中的少年 提交于 2019-12-21 07:14:02
问题 I have some issues while running Sonar on my netbeans' project. It's not working and i have the following error : C:\Users\remy.fischer\Desktop\NetBeansProjects\NetBeansProjects\BinPacking\sonar-scanner-3.0.3.778-windows\bin>sonar-scanner -Dsonar.projectKey=..... -Dsonar.projectName=... INFO: Scanner configuration file: C:\Users\remy.fischer\Desktop\NetBeansProjects \NetBeansProjects\BinPacking\sonar-scanner-3.0.3.778-windows\bin\..\conf\sonar-s canner.properties INFO: Project root

how to create a single annotation accept multiple values in Java

泄露秘密 提交于 2019-12-21 04:15:26
问题 I have a Annotation called @Retention( RetentionPolicy.SOURCE ) @Target( ElementType.METHOD ) public @interface JIRA { /** * The 'Key' (Bug number / JIRA reference) attribute of the JIRA issue. */ String key(); } which allows to add annotation like this @JIRA( key = "JIRA1" ) is there any way to allow this to happen @JIRA( key = "JIRA1", "JIRA2", ..... ) the reason is, we currently annotate the test against a Jira task or bug fix, but sometimes, then the value will get parsed by sonar.

Error in jenkins during sonar analysis caused by svn blame

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-21 03:36:35
问题 When i run the jenkins task i get the following error 17:12:49.738 INFO - Sensor SCM Sensor... 17:12:49.847 INFO - SCM provider for this project is: svn 17:12:49.847 INFO - Retrieve SCM blame information... 17:12:49.863 INFO - 843 files to be analyzed INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ Total time: 1:11.026s Final Memory: 31M/214M INFO: ------------

java.lang.UnsupportedClassVersionError: org/sonar/batch/bootstrapper/EnvironmentInformation : Unsupported major.minor version 52.0

浪子不回头ぞ 提交于 2019-12-21 03:17:06
问题 Environment details: SonarQube 5.6 Apache Maven 3.3.9 Java version: 1.7.0_09 I integrated SonarQube plugin with java maven project like in pom.xml <build> <pluginManagement> <plugins> <plugin> <groupId>org.sonarsource.scanner.maven</groupId> <artifactId>sonar-maven-plugin</artifactId> <version>3.0.2</version> </plugin> </plugins> </pluginManagement> </build> While executing goal: mvn sonar:sonar -Dsonar.host.url=<url> Getting exception: [ERROR] Failed to execute goal org.sonarsource.scanner