java - SonarQube 4.3 - 0 files indexed -
java - SonarQube 4.3 - 0 files indexed -
i'm trying run sonar analysis on jave code. there no files indexed.
info: runner configuration file: c:\program files\development\tools\sonar-runner-2.4\conf\sonar-runner.properties info: project configuration file: c:\program files\development\tools\sonar-runner-2.4\projects\sonar-project.properties info: default locale: "en_us", source code encoding: "utf-8" info: work directory: c:\program files\development\tools\sonar-runner-2.4\bin\.\.sonar info: sonarqube server 4.3 09:41:48.340 info - load batch settings 09:41:49.535 info - user cache: c:\users\z003bw5a\.sonar\cache 09:41:49.580 info - install plugins 09:41:55.230 info - install jdbc driver 09:41:55.272 info - create jdbc datasource jdbc:mysql://localhost:3306/sonar?useunicode=true&characterencoding=utf8 09:42:00.687 info - initializing hibernate 09:42:15.950 info - load project settings 09:42:16.125 info - apply project exclusions 09:42:16.812 info - ------------- scan skuska 1 09:42:16.842 info - load module settings 09:42:20.400 info - language forced java 09:42:21.177 info - loading technical debt model... 09:42:21.241 info - loading technical debt model done: 64 ms 09:42:21.246 info - loading rules... 09:42:22.359 info - loading rules done: 1113 ms 09:42:22.430 info - configure maven plugins 09:42:22.730 info - compare previous analysis (2014-06-18) 09:42:22.767 info - compare on 30 days (2014-05-19, analysis of 2014-06-18 09:12:14.0) 09:42:22.926 info - loaded quality gate 'sonarqube way' 09:42:24.118 info - base of operations dir: c:\program files\development\tools\sonar-runner-2.4\bin\. 09:42:24.122 info - working dir: c:\program files\development\tools\sonar-runner-2.4\bin\.\.sonar 09:42:24.126 info - source encoding: utf-8, default locale: en_us 09:42:24.137 info - index files 09:42:24.228 info - 0 files indexed 09:42:24.238 info - quality profile java: sonar way 09:42:24.254 info - jacoco study not found. 09:42:24.269 info - jacoco study not found. 09:42:24.274 info - jacoco reports not found. 09:42:24.328 info - sensor qprofilesensor... 09:42:24.454 info - sensor qprofilesensor done: 126 ms 09:42:24.458 info - sensor initialopenissuessensor... 09:42:24.493 info - sensor initialopenissuessensor done: 35 ms 09:42:24.498 info - sensor profileeventssensor... 09:42:24.581 info - sensor profileeventssensor done: 83 ms 09:42:24.585 info - sensor projectlinkssensor... 09:42:24.612 info - sensor projectlinkssensor done: 27 ms 09:42:24.615 info - sensor versioneventssensor... 09:42:24.886 info - sensor versioneventssensor done: 271 ms 09:42:24.890 info - sensor filehashsensor... 09:42:24.894 info - sensor filehashsensor done: 4 ms 09:42:24.905 info - sensor cpdsensor... 09:42:24.908 info - sonarengine used java 09:42:24.919 info - sensor cpdsensor done: 14 ms 09:42:26.614 info - execute decorators... 09:42:27.719 info - store results in database 09:42:28.073 info - analysis successful, can browse http://localhost:9000/dashboard/index/skuska 09:42:28.629 info - executing post-job class org.sonar.plugins.dbcleaner.projectpurgepostjob 09:42:28.739 info - -> maintain 1 snapshot per day between 2014-05-21 , 2014-06-17 09:42:28.753 info - -> maintain 1 snapshot per week between 2013-06-19 , 2014-05-21 09:42:28.781 info - -> maintain 1 snapshot per month between 2009-06-24 , 2013-06-19 09:42:28.785 info - -> delete info prior to: 2009-06-24 09:42:28.856 info - -> clean skuska 1 [id=3] 09:42:28.905 info - <- clean snapshot 19 09:42:29.430 info - executing post-job class org.sonar.plugins.core.issue.notification.sendissuenotificationspostjob 09:42:29.435 info - executing post-job class org.sonar.plugins.core.batch.indexprojectpostjob info: ------------------------------------------------------------------------ info: execution success info: ------------------------------------------------------------------------ total time: 56.892s final memory: 11m/212m info: ------------------------------------------------------------------------
my sonar settings this:
# section 1: required metadata sonar.projectkey=skuska sonar.projectname=skuska 1 sonar.projectversion=0.1 # section 2: project directories # path source directories (required) sonar.sources=c:\program files\development\tools\sonar-runner-2.4\projects\skuska # path test source directories (optional) #sonar.tests= # path project binaries (optional), illustration directory of java # bytecode #sonar.binaries= # section 3: java , libraries settings # optional comma-separated list of paths libraries. path jar file # , path directory of classes supported. #libraries=path/to/library.jar # uncomment lines if features of java 5 or java 6 # annotations, enum, ... # used in source code analysed #sonar.java.source=1.5 #sonar.java.target=1.5 # section 4: advanced parameters # uncomment line analyse project not java project. # value of property must key of language. sonar.language=java # advanced parameters #sonar.my.property=value sonar.sourceencoding=utf-8
analysis successful, web server name of project , no info metrics , code coverage.
please help me!
as can read in the documentation, should set sonar-project.properties file @ root of project , launch analysis folder, , hence replace "sonar.sources" property relative path instead of absolute one.
java code-coverage sonarqube sonar-runner
Comments
Post a Comment