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

前端 未结 2 1734
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-05 01:59

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.

2条回答
  •  耶瑟儿~
    2021-01-05 02:32

    Did you set both sonar.login and sonar.password parameters (https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Maven#AnalyzingwithSonarQubeScannerforMaven-Security) ?

    Note that in recent versions (like SonarQube 6.5), you should use a user token and just set it in the sonar.login parameter: https://docs.sonarqube.org/display/SONAR/User+Token

提交回复
热议问题