2016-03-24 21 views
1

Sonarqube 5.4 sunucum var, cpp plugin en son sürümünü yükledim (şimdi 3.10). Ayrıca the builder ve sonar-runner'u da yükledim.sonar-runner, cpp örneğindeki dosyaları ayrıştırmıyor Örnek

cpp exaple'u indirdim ve orada sonar-yürütücüyü çalıştırdım, ancak kaynak kod dosyaları analiz edilmiyor. Projenin sonar sunucu güncellemesinde olsun, ama burada görüldüğü gibi bu, hiçbir şey içerir: Bu arada

sonarqube project page

, bazen bu olsun, ama her zaman olmaz:

/opt/example$ sonar-runner scan 
SonarQube Runner 2.4 
Java 1.7.0_95 Oracle Corporation (64-bit) 
Linux 3.2.0-4-amd64 amd64 
INFO: Runner configuration file: /opt/sonar-runner/conf/sonar-runner.properties 
INFO: Project configuration file: /opt/example/sonar-project.properties 
INFO: Default locale: "de_DE", source code encoding: "UTF-8" 
INFO: Work directory: /opt/example/./.sonar 
INFO: SonarQube Server 5.4 
19:32:05.625 INFO - Load global repositories 
19:32:05.751 INFO - Load global repositories (done) | time=125ms 
19:32:05.770 WARN - Property 'sonar.jdbc.url' is not supported any more. It will be ignored. There is no longer any DB connection to the SQ database. 
19:32:05.771 WARN - Property 'sonar.jdbc.username' is not supported any more. It will be ignored. There is no longer any DB connection to the SQ database. 
19:32:05.771 WARN - Property 'sonar.jdbc.password' is not supported any more. It will be ignored. There is no longer any DB connection to the SQ database. 
19:32:05.772 INFO - User cache: /home/dettinstall/.sonar/cache 
19:32:05.966 INFO - Load plugins index 
19:32:05.969 INFO - Load plugins index (done) | time=3ms 
19:32:06.542 INFO - Process project properties 
19:32:06.666 INFO - Load project repositories 
19:32:06.736 INFO - Load project repositories (done) | time=70ms 
19:32:06.751 INFO - Apply project exclusions 
19:32:06.828 INFO - Load quality profiles 
19:32:06.853 INFO - Load quality profiles (done) | time=25ms 
19:32:06.856 INFO - Load active rules 
19:32:07.470 INFO - Load active rules (done) | time=614ms 
19:32:07.476 WARN - SCM provider autodetection failed. No SCM provider claims to support this project. Please use sonar.scm.provider to define SCM of your project. 
19:32:07.476 INFO - Publish mode 
19:32:07.477 INFO - ------------- Scan C++ :: Simple Project :: SonarQube Scanner 
19:32:07.587 INFO - Load server rules 
19:32:07.676 INFO - Load server rules (done) | time=89ms 
19:32:07.747 INFO - Base dir: /opt/example 
19:32:07.748 INFO - Working dir: /opt/example/.sonar 
19:32:07.749 INFO - Source paths: src 
19:32:07.749 INFO - Source encoding: UTF-8, default locale: de_DE 
19:32:07.749 INFO - Index files 
19:32:07.771 INFO - 1 files indexed 
19:32:07.776 INFO - Quality profile for c: Sonar way 
19:32:08.472 INFO - JaCoCoSensor: JaCoCo report not found : /opt/example/target/jacoco.exec 
19:32:08.473 INFO - JaCoCoItSensor: JaCoCo IT report not found: /opt/example/target/jacoco-it.exec 
INFO: ------------------------------------------------------------------------ 
INFO: EXECUTION FAILURE 
INFO: ------------------------------------------------------------------------ 
Total time: 3.514s 
Final Memory: 10M/120M 
INFO: ------------------------------------------------------------------------ 
ERROR: Error during Sonar runner execution 
ERROR: Unable to execute Sonar 
ERROR: Caused by: No license for cpp 
ERROR: 
ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch. 
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging. 

Bazı özel lisansa ihtiyacım var mı?

cevap

1

Bu eklenti için bir lisansa ihtiyacınız var. request an evaluation license.

Her zaman lisans hatasını almamanız oldukça şaşırtıcı. Bazı analizleriniz C/C++ dosyalarını içermemelidir.

+0

Bir şeyi yanlış anlamış olabilirim, ama sonarqube ve C++ eklentisi açık kaynaklı bir yazılım değil mi? Hangi C++ eklentisi için lisansa ihtiyacım yok? –

+1

SonarQube platformu FOSS, ancak SonarSource C/C++ eklentisi değil. Bir topluluk destekli eklenti de var ama onunla hiçbir deneyimim yok: https://github.com/SonarOpenCommunity/sonar-cxx –

+0

bu örnekler C++ dosyaları (kaynak + üstbilgileri) –

İlgili konular