SonarQube +Idea 2016 分析代码质量错误日志

1.打开存放项目工程磁盘目录创建sonar-project.properties文件,内容如下:
# Required metadata
#Web Project Info
sonar.projectKey= mark-apple-servcie-web
sonar.projectName=mark-apple-servcie-web
sonar.projectVersion=1.0-SNAPSHOT

Comma-separated paths to directories with sources (required)

sonar.sources=src
sonar.binaries=bin

Language

sonar.language=java

Encoding of the source files

sonar.sourceEncoding=UTF-8

2.打开存放项目工程磁盘目录,使用快捷键【Alt + D 】 输入cmd, 进入存放项目工程磁盘目录的cmd界面:
D:\Program Files\Software Repository\Git Repository\mark-apple-service-web>

3.键盘输入:sonar-runner命令,等待响应:

D:\Program Files\Software Repository\Git Repository\mark-apple-service-web>sonar-runner
D:\Program Files\Software Development\SoanrRunner\sonar-runner-2.4
SonarQube Runner 2.4
Java 1.8.0_121 Oracle Corporation (64-bit)
Windows 10 10.0 amd64
INFO: Runner configuration file: D:\Program Files\Software Development\SoanrRunner\sonar-runner-2.4\conf\sonar-runner.properties
INFO: Project configuration file: D:\Program Files\Software Repository\Git Repository\mark-apple-service-web\sonar-project.properties
INFO: Default locale: “zh_CN”, source code encoding: “UTF-8”
INFO: Work directory: D:\Program Files\Software Repository\Git Repository\mark-apple-service-web..sonar
INFO: SonarQube Server 6.2
17:13:06.867 INFO - Load global repositories
17:13:07.094 INFO - Load global repositories (done) | time=230ms
17:13:07.113 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.
17:13:07.114 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.
17:13:07.115 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.
17:13:07.117 INFO - User cache: C:\Users\MarkLin.sonar\cache
17:13:07.527 INFO - Load plugins index
17:13:07.537 INFO - Load plugins index (done) | time=10ms
17:13:07.720 INFO - Plugin [l10nel] defines ‘l10nen’ as base plugin. This metadata can be removed from manifest of l10n plugins since version 5.2.
17:13:09.127 INFO - Process project properties
17:13:09.294 INFO - Load project repositories
17:13:09.307 INFO - Load project repositories (done) | time=13ms
17:13:09.984 INFO - Execute project builders
17:13:09.987 INFO - Execute project builders (done) | time=3ms
17:13:10.101 INFO - Load quality profiles
17:13:10.160 INFO - Load quality profiles (done) | time=59ms
17:13:10.177 INFO - Load active rules
17:13:11.201 INFO - Load active rules (done) | time=1024ms
17:13:11.248 INFO - Publish mode
17:13:11.250 INFO - ————- Scan mark-apple-servcie-web
17:13:11.714 INFO - Language is forced to java
17:13:11.726 INFO - Load server rules
17:13:11.930 INFO - Load server rules (done) | time=204ms
17:13:12.059 INFO - Initializer GenericCoverageSensor
17:13:12.059 INFO - Initializer GenericCoverageSensor (done) | time=0ms
17:13:12.061 INFO - Base dir: D:\Program Files\Software Repository\Git Repository\mark-apple-service-web
17:13:12.062 INFO - Working dir: D:\Program Files\Software Repository\Git Repository\mark-apple-service-web.sonar
17:13:12.064 INFO - Source paths: src
17:13:12.064 INFO - Source encoding: UTF-8, default locale: zh_CN
17:13:12.065 INFO - Index files
17:13:12.134 INFO - 1 files indexed
17:13:12.141 INFO - Quality profile for java: Sonar way
17:13:12.317 WARN - —————————————————————-
17:13:12.317 WARN - Sonargraph Integration: Skipping project mark-apple-servcie-web [mark-apple-servcie-web], since no Sonargraph rules are activated in current SonarQube quality profile [Sonar way].
17:13:12.319 WARN - —————————————————————-
INFO: ————————————————————————
INFO: EXECUTION FAILURE
INFO: ————————————————————————
Total time: 9.492s
Final Memory: 32M/360M
INFO: ————————————————————————
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: No license for devcockpit
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.

D:\Program Files\Software Repository\Git Repository\mark-apple-service-web>

5 .键盘输入 :sonar-runner -e:

D:\Program Files\Software Repository\Git Repository\mark-apple-service-web>sonar-runner -e
D:\Program Files\Software Development\SoanrRunner\sonar-runner-2.4
SonarQube Runner 2.4
Java 1.8.0_121 Oracle Corporation (64-bit)
Windows 10 10.0 amd64
INFO: Error stacktraces are turned on.
INFO: Runner configuration file: D:\Program Files\Software Development\SoanrRunner\sonar-runner-2.4\conf\sonar-runner.properties
INFO: Project configuration file: D:\Program Files\Software Repository\Git Repository\mark-apple-service-web\sonar-project.properties
INFO: Default locale: “zh_CN”, source code encoding: “UTF-8”
INFO: Work directory: D:\Program Files\Software Repository\Git Repository\mark-apple-service-web..sonar
INFO: SonarQube Server 6.2
17:43:59.139 INFO - Load global repositories
17:43:59.361 INFO - Load global repositories (done) | time=223ms
17:43:59.382 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.
17:43:59.383 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.
17:43:59.383 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.
17:43:59.385 INFO - User cache: C:\Users\MarkLin.sonar\cache
17:43:59.797 INFO - Load plugins index
17:43:59.802 INFO - Load plugins index (done) | time=5ms
17:43:59.964 INFO - Plugin [l10nel] defines ‘l10nen’ as base plugin. This metadata can be removed from manifest of l10n plugins since version 5.2.
17:44:01.429 INFO - Process project properties
17:44:01.587 INFO - Load project repositories
17:44:01.603 INFO - Load project repositories (done) | time=16ms
17:44:02.469 INFO - Execute project builders
17:44:02.472 INFO - Execute project builders (done) | time=3ms
17:44:02.585 INFO - Load quality profiles
17:44:02.647 INFO - Load quality profiles (done) | time=62ms
17:44:02.659 INFO - Load active rules
17:44:03.635 INFO - Load active rules (done) | time=976ms
17:44:03.714 INFO - Publish mode
17:44:03.716 INFO - ————- Scan mark-apple-servcie-web
17:44:04.014 INFO - Language is forced to java
17:44:04.027 INFO - Load server rules
17:44:04.317 INFO - Load server rules (done) | time=290ms
17:44:04.462 INFO - Initializer GenericCoverageSensor
17:44:04.462 INFO - Initializer GenericCoverageSensor (done) | time=0ms
17:44:04.465 INFO - Base dir: D:\Program Files\Software Repository\Git Repository\mark-apple-service-web
17:44:04.465 INFO - Working dir: D:\Program Files\Software Repository\Git Repository\mark-apple-service-web.sonar
17:44:04.469 INFO - Source paths: src
17:44:04.469 INFO - Source encoding: UTF-8, default locale: zh_CN
17:44:04.471 INFO - Index files
17:44:04.561 INFO - 1 files indexed
17:44:04.569 INFO - Quality profile for java: Sonar way
17:44:04.772 WARN - —————————————————————-
17:44:04.772 WARN - Sonargraph Integration: Skipping project mark-apple-servcie-web [mark-apple-servcie-web], since no Sonargraph rules are activated in current SonarQube quality profile [Sonar way].
17:44:04.774 WARN - —————————————————————-
INFO: ————————————————————————
INFO: EXECUTION FAILURE
INFO: ————————————————————————
Total time: 10.177s
Final Memory: 28M/335M
INFO: ————————————————————————
ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
at org.sonar.runner.impl.BatchLauncher 1.delegateExecution(BatchLauncher.java:91)atorg.sonar.runner.impl.BatchLauncher 1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
at org.sonar.runner.api.Runner.execute(Runner.java:100)
at org.sonar.runner.Main.executeTask(Main.java:70)
at org.sonar.runner.Main.execute(Main.java:59)
at org.sonar.runner.Main.main(Main.java:53)
Caused by: com.sonarsource.devcockpit.D.A.B.A: No license for devcockpit
ERROR:
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.

D:\Program Files\Software Repository\Git Repository\mark-apple-service-web>

1. 键盘输入:sonar-runner -X:

D:\Program Files\Software Repository\Git Repository\mark-apple-service-web>sonar-runner -X
D:\Program Files\Software Development\SoanrRunner\sonar-runner-2.4
SonarQube Runner 2.4
Java 1.8.0_121 Oracle Corporation (64-bit)
Windows 10 10.0 amd64
INFO: Error stacktraces are turned on.
INFO: Runner configuration file: D:\Program Files\Software Development\SoanrRunner\sonar-runner-2.4\conf\sonar-runner.properties
INFO: Project configuration file: D:\Program Files\Software Repository\Git Repository\mark-apple-service-web\sonar-project.properties
INFO: Default locale: “zh_CN”, source code encoding: “UTF-8”
INFO: Work directory: D:\Program Files\Software Repository\Git Repository\mark-apple-service-web..sonar
INFO: SonarQube Server 6.2
17:45:30.205 DEBUG - Publish global mode
17:45:30.676 INFO - Load global repositories
17:45:30.736 DEBUG - GET 200 http://localhost:9000/batch/global | time=56ms
17:45:30.833 INFO - Load global repositories (done) | time=158ms
17:45:30.851 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.
17:45:30.852 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.
17:45:30.853 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.
17:45:30.854 INFO - User cache: C:\Users\MarkLin.sonar\cache
17:45:31.287 INFO - Load plugins index
17:45:31.290 DEBUG - GET 200 http://localhost:9000/deploy/plugins/index.txt | time=2ms
17:45:31.292 INFO - Load plugins index (done) | time=5ms
17:45:31.294 DEBUG - Load plugins
17:45:31.453 INFO - Plugin [l10nel] defines ‘l10nen’ as base plugin. This metadata can be removed from manifest of l10n plugins since version 5.2.
17:45:31.455 DEBUG - Load plugins (done) | time=161ms
17:45:31.472 DEBUG - API compatibility mode is enabled on plugin CVS [scmcvs] (built with API lower than 5.2)
17:45:31.476 DEBUG - API compatibility mode is enabled on plugin PMD [pmd] (built with API lower than 5.2)
17:45:31.481 DEBUG - API compatibility mode is enabled on plugin Android [android] (built with API lower than 5.2)
17:45:31.484 DEBUG - API compatibility mode is enabled on plugin Erlang [erlang] (built with API lower than 5.2)
17:45:31.486 DEBUG - API compatibility mode is enabled on plugin ClearCase [scmclearcase] (built with API lower than 5.2)
17:45:31.492 DEBUG - API compatibility mode is enabled on plugin SVN [scmsvn] (built with API lower than 5.2)
17:45:31.498 DEBUG - API compatibility mode is enabled on plugin Sonargraph Integration [sonargraphintegration] (built with API lower than 5.2)
17:45:31.503 DEBUG - API compatibility mode is enabled on plugin XML [xml] (built with API lower than 5.2)
17:45:31.506 DEBUG - API compatibility mode is enabled on plugin Checkstyle [checkstyle] (built with API lower than 5.2)
17:45:31.508 DEBUG - API compatibility mode is enabled on plugin PAM [pam] (built with API lower than 5.2)
17:45:31.514 DEBUG - API compatibility mode is enabled on plugin CodeCracker for C# [codecrackercsharp] (built with API lower than 5.2)
17:45:31.517 DEBUG - API compatibility mode is enabled on plugin Google Analytics [googleanalytics] (built with API lower than 5.2)
17:45:31.523 DEBUG - API compatibility mode is enabled on plugin Perforce [scmperforce] (built with API lower than 5.2)
17:45:31.527 DEBUG - API compatibility mode is enabled on plugin Git [scmgit] (built with API lower than 5.2)
17:45:31.531 DEBUG - API compatibility mode is enabled on plugin Greek Pack [l10nel] (built with API lower than 5.2)
17:45:31.700 DEBUG - set property DisableablePlugin.enabledPropKey = citymodel.enabled
17:45:31.700 DEBUG - set property LicensedPlugin.licenseCertPropKey = citymodel.license_cert.secured
17:45:32.095 DEBUG - Plugins:
17:45:32.095 DEBUG - * Developer Cockpit 1.15.0.994 (devcockpit)
17:45:32.098 DEBUG - * CVS 1.0 (scmcvs)
17:45:32.099 DEBUG - * CSS / SCSS / Less 3.0 (css)
17:45:32.099 DEBUG - * PMD 2.6 (pmd)
17:45:32.100 DEBUG - * Android 1.1 (android)
17:45:32.101 DEBUG - * Bitbucket Authentication for SonarQube 1.0 (authbitbucket)
17:45:32.101 DEBUG - * Erlang 1.2-SNAPSHOT (erlang)
17:45:32.102 DEBUG - * ClearCase 1.1 (scmclearcase)
17:45:32.103 DEBUG - * JSON 2.2 (JSON)
17:45:32.104 DEBUG - * 3D Code Metrics 3.4.1 (citymodel)
17:45:32.104 DEBUG - * SVN 1.3 (scmsvn)
17:45:32.105 DEBUG - * Java Properties 2.4 (javaProperties)
17:45:32.106 DEBUG - * C# 5.5.1.522 (csharp)
17:45:32.107 DEBUG - * Java 4.4.0.8066 (java)
17:45:32.108 DEBUG - * Sonargraph Integration 2.0.1 (sonargraphintegration)
17:45:32.109 DEBUG - * LDAP 2.1.0.507 (ldap)
17:45:32.110 DEBUG - * Web 2.5.0.476 (web)
17:45:32.110 DEBUG - * XML 1.4.1 (xml)
17:45:32.111 DEBUG - * Pitest 0.7 (pitest)
17:45:32.112 DEBUG - * Rules Compliance Index (RCI) Plugin for SonarQube 1.0 (rci)
17:45:32.113 DEBUG - * Checkstyle 2.4 (checkstyle)
17:45:32.114 DEBUG - * VB.NET 3.0.3.346 (vbnet)
17:45:32.115 DEBUG - * PAM 0.2 (pam)
17:45:32.115 DEBUG - * C / C++ / Objective-C 4.5.0.6615 (cpp)
17:45:32.117 DEBUG - * GitHub 1.3 (github)
17:45:32.119 DEBUG - * Python 1.7.0.1195 (python)
17:45:32.119 DEBUG - * Code Smells 4.0.0 (smells)
17:45:32.120 DEBUG - * GitHub Authentication for SonarQube 1.3 (authgithub)
17:45:32.121 DEBUG - * CodeCracker for C# 1.0.1 (codecrackercsharp)
17:45:32.121 DEBUG - * Sonargraph 3.5 (Sonargraph)
17:45:32.122 DEBUG - * AEM Rules for SonarQube 0.8 (aemrules)
17:45:32.123 DEBUG - * Azure Active Directory (AAD) Authentication Plug-in for SonarQube 1.0 (authaad)
17:45:32.123 DEBUG - * Google Analytics 1.1 (googleanalytics)
17:45:32.124 DEBUG - * jDepend Plugin for SonarQube 1.0 (jdepend)
17:45:32.125 DEBUG - * JavaScript 2.18.0.3454 (javascript)
17:45:32.125 DEBUG - * Findbugs 3.4.4 (findbugs)
17:45:32.126 DEBUG - * Perforce 1.4 (scmperforce)
17:45:32.128 DEBUG - * Groovy 1.4 (groovy)
17:45:32.129 DEBUG - * Cobol 3.3.1.1636 (cobol)
17:45:32.130 DEBUG - * Git 1.2 (scmgit)
17:45:32.131 DEBUG - * Lua 1.0 (lua)
17:45:32.131 DEBUG - * SoftVis3D 0.6.0 (softvis3d)
17:45:32.132 DEBUG - * Xanitizer 1.3.3 (xanitizer)
17:45:32.133 DEBUG - * ABAP 3.3 (abap)
17:45:32.134 DEBUG - * Greek Pack 1.8 (l10nel)
17:45:32.923 INFO - Process project properties
17:45:32.928 DEBUG - Process project properties (done) | time=5ms
17:45:33.078 INFO - Load project repositories
17:45:33.114 DEBUG - GET 404 http://localhost:9000/batch/project.protobuf?key=mark-apple-servcie-web | time=34ms
17:45:33.117 DEBUG - Project repository not available - continuing without it
org.sonarqube.ws.client.HttpException: Error 404 on http://localhost:9000/batch/project.protobuf?key=mark-apple-servcie-web : {“errors”:[{“msg”:”Project or module with key ‘mark-apple-servcie-web’ is not found”}]}
at org.sonarqube.ws.client.BaseResponse.failIfNotSuccessful(BaseResponse.java:36)
at org.sonar.scanner.bootstrap.BatchWsClient.failIfUnauthorized(BatchWsClient.java:102)
at org.sonar.scanner.bootstrap.BatchWsClient.call(BatchWsClient.java:71)
at org.sonar.scanner.repository.DefaultProjectRepositoriesLoader.load(DefaultProjectRepositoriesLoader.java:58)
at org.sonar.scanner.repository.ProjectRepositoriesProvider.provide(ProjectRepositoriesProvider.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.picocontainer.injectors.MethodInjector.invokeMethod(MethodInjector.java:129)
at org.picocontainer.injectors.MethodInjector.access 000(MethodInjector.java:39)atorg.picocontainer.injectors.MethodInjector 2.run(MethodInjector.java:113)
at org.picocontainer.injectors.AbstractInjector ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)atorg.picocontainer.injectors.MethodInjector.decorateComponentInstance(MethodInjector.java:120)atorg.picocontainer.injectors.CompositeInjector.decorateComponentInstance(CompositeInjector.java:58)atorg.picocontainer.injectors.Reinjector.reinject(Reinjector.java:142)atorg.picocontainer.injectors.ProviderAdapter.getComponentInstance(ProviderAdapter.java:96)atorg.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)atorg.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)atorg.sonar.core.platform.ComponentContainer ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:67)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:632)
at org.picocontainer.parameters.BasicComponentParameter 1.resolveInstance(BasicComponentParameter.java:118)atorg.picocontainer.parameters.ComponentParameter 1.resolveInstance(ComponentParameter.java:136)
at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
at org.picocontainer.injectors.ConstructorInjector CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)atorg.picocontainer.injectors.ConstructorInjector 1.run(ConstructorInjector.java:335)
at org.picocontainer.injectors.AbstractInjector ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)atorg.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)atorg.picocontainer.injectors.AbstractInjectionFactory LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
at org.sonar.core.platform.ComponentContainer ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:67)atorg.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:632)atorg.picocontainer.parameters.BasicComponentParameter 1.resolveInstance(BasicComponentParameter.java:118)
at org.picocontainer.parameters.ComponentParameter 1.resolveInstance(ComponentParameter.java:136)atorg.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)atorg.picocontainer.injectors.ConstructorInjector CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
at org.picocontainer.injectors.ConstructorInjector 1.run(ConstructorInjector.java:335)atorg.picocontainer.injectors.AbstractInjector ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
at org.picocontainer.injectors.AbstractInjectionFactory LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)atorg.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)atorg.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)atorg.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)atorg.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)atorg.sonar.core.platform.ComponentContainer ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:67)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:621)
at org.picocontainer.parameters.CollectionComponentParameter.getArrayInstance(CollectionComponentParameter.java:334)
at org.picocontainer.parameters.CollectionComponentParameter.access 100(CollectionComponentParameter.java:49)atorg.picocontainer.parameters.CollectionComponentParameter 1.resolveInstance(CollectionComponentParameter.java:139)
at org.picocontainer.parameters.ComponentParameter 1.resolveInstance(ComponentParameter.java:141)atorg.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)atorg.picocontainer.injectors.ConstructorInjector CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
at org.picocontainer.injectors.ConstructorInjector 1.run(ConstructorInjector.java:335)atorg.picocontainer.injectors.AbstractInjector ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
at org.picocontainer.injectors.AbstractInjectionFactory LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)atorg.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)atorg.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)atorg.picocontainer.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:606)atorg.picocontainer.DefaultPicoContainer.getComponents(DefaultPicoContainer.java:587)atorg.sonar.core.platform.ComponentContainer.getComponentsByType(ComponentContainer.java:281)atorg.sonar.scanner.bootstrap.ExtensionInstaller.install(ExtensionInstaller.java:60)atorg.sonar.scanner.scan.ProjectScanContainer.addBatchExtensions(ProjectScanContainer.java:223)atorg.sonar.scanner.scan.ProjectScanContainer.doBeforeStart(ProjectScanContainer.java:113)atorg.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:140)atorg.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)atorg.sonar.scanner.task.ScanTask.execute(ScanTask.java:47)atorg.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:86)atorg.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)atorg.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)atorg.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:115)atorg.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:116)atorg.sonar.batch.bootstrapper.Batch.execute(Batch.java:76)atorg.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)atjava.lang.reflect.Method.invoke(Method.java:498)atorg.sonar.runner.impl.BatchLauncher 1.delegateExecution(BatchLauncher.java:87)
at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
at org.sonar.runner.api.Runner.execute(Runner.java:100)
at org.sonar.runner.Main.executeTask(Main.java:70)
at org.sonar.runner.Main.execute(Main.java:59)
at org.sonar.runner.Main.main(Main.java:53)
17:45:33.120 INFO - Load project repositories (done) | time=42ms
17:45:33.980 INFO - Execute project builders
17:45:33.981 INFO - Execute project builders (done) | time=1ms
17:45:34.081 DEBUG - Available languages:
17:45:34.082 DEBUG - * CSS => “css”
17:45:34.084 DEBUG - * SCSS => “scss”
17:45:34.084 DEBUG - * Less => “less”
17:45:34.085 DEBUG - * Erlang => “erlang”
17:45:34.086 DEBUG - * JSON => “json”
17:45:34.087 DEBUG - * Java Properties => “jproperties”
17:45:34.088 DEBUG - * C# => “cs”
17:45:34.089 DEBUG - * Java => “java”
17:45:34.090 DEBUG - * Web => “web”
17:45:34.091 DEBUG - * XML => “xml”
17:45:34.094 DEBUG - * Visual Basic .NET => “vbnet”
17:45:34.094 DEBUG - * C => “c”
17:45:34.095 DEBUG - * C++ => “cpp”
17:45:34.096 DEBUG - * Objective-C => “objc”
17:45:34.097 DEBUG - * Python => “py”
17:45:34.098 DEBUG - * JavaScript => “js”
17:45:34.099 DEBUG - * JSP => “jsp”
17:45:34.101 DEBUG - * Groovy => “grvy”
17:45:34.102 DEBUG - * COBOL => “cobol”
17:45:34.104 DEBUG - * Lua => “lua”
17:45:34.105 DEBUG - * ABAP => “abap”
17:45:34.116 INFO - Load quality profiles
17:45:34.145 DEBUG - GET 200 http://localhost:9000/api/qualityprofiles/search.protobuf?defaults=true | time=28ms
17:45:34.172 INFO - Load quality profiles (done) | time=56ms
17:45:34.196 INFO - Load active rules
17:45:34.223 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=abap-sonar-way-63559&p=1&ps=500 | time=25ms
17:45:34.356 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=c-sonar-way-30211&p=1&ps=500 | time=37ms
17:45:34.387 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=cobol-sonar-way-84621&p=1&ps=500 | time=26ms
17:45:34.440 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=cpp-sonar-way-98945&p=1&ps=500 | time=51ms
17:45:34.490 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=cs-sonar-way-30872&p=1&ps=500 | time=42ms
17:45:34.538 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=css-sonarqube-way-22329&p=1&ps=500 | time=42ms
17:45:34.574 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=erlang-sonar-way-86217&p=1&ps=500 | time=30ms
17:45:34.606 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=grvy-sonar-way-34899&p=1&ps=500 | time=29ms
17:45:34.678 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=java-sonar-way-01249&p=1&ps=500 | time=70ms
17:45:34.706 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=jproperties-sonarqube-way-29202&p=1&ps=500 | time=21ms
17:45:34.735 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=js-sonar-way-02592&p=1&ps=500 | time=28ms
17:45:34.753 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=json-sonarqube-way-82412&p=1&ps=500 | time=15ms
17:45:34.768 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=jsp-findbugs-security-jsp-59447&p=1&ps=500 | time=14ms
17:45:34.797 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=less-sonarqube-way-71357&p=1&ps=500 | time=28ms
17:45:34.815 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=lua-sonar-way-13327&p=1&ps=500 | time=16ms
17:45:34.861 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=objc-sonar-way-28154&p=1&ps=500 | time=46ms
17:45:34.886 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=py-sonar-way-54429&p=1&ps=500 | time=22ms
17:45:34.919 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=scss-sonarqube-way-33846&p=1&ps=500 | time=31ms
17:45:34.942 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=vbnet-sonar-way-20948&p=1&ps=500 | time=21ms
17:45:34.965 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=web-sonar-way-08225&p=1&ps=500 | time=20ms
17:45:34.983 DEBUG - GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=xml-sonar-way-22559&p=1&ps=500 | time=16ms
17:45:35.003 INFO - Load active rules (done) | time=807ms
17:45:35.049 INFO - Publish mode
17:45:35.050 DEBUG - Start recursive analysis of project modules
17:45:35.053 INFO - ————- Scan mark-apple-servcie-web
17:45:35.358 INFO - Language is forced to java
17:45:35.369 INFO - Load server rules
17:45:35.556 DEBUG - GET 200 http://localhost:9000/api/rules/list.protobuf | time=187ms
17:45:35.595 INFO - Load server rules (done) | time=226ms
17:45:35.727 DEBUG - Initializers : GenericCoverageSensor
17:45:35.728 INFO - Initializer GenericCoverageSensor
17:45:35.730 INFO - Initializer GenericCoverageSensor (done) | time=3ms
17:45:35.731 INFO - Base dir: D:\Program Files\Software Repository\Git Repository\mark-apple-service-web
17:45:35.731 INFO - Working dir: D:\Program Files\Software Repository\Git Repository\mark-apple-service-web.sonar
17:45:35.733 INFO - Source paths: src
17:45:35.734 INFO - Source encoding: UTF-8, default locale: zh_CN
17:45:35.735 INFO - Index files
17:45:35.786 DEBUG - Declared extensions of language CSS were converted to sonar.lang.patterns.css : */.css
17:45:35.786 DEBUG - Declared extensions of language SCSS were converted to sonar.lang.patterns.scss : */.scss
17:45:35.789 DEBUG - Declared extensions of language Less were converted to sonar.lang.patterns.less : */.less
17:45:35.789 DEBUG - Declared extensions of language Erlang were converted to sonar.lang.patterns.erlang : */.erl
17:45:35.792 DEBUG - Declared extensions of language JSON were converted to sonar.lang.patterns.json : */.json
17:45:35.792 DEBUG - Declared extensions of language Java Properties were converted to sonar.lang.patterns.jproperties : */.properties
17:45:35.793 DEBUG - Declared extensions of language C# were converted to sonar.lang.patterns.cs : */.cs
17:45:35.794 DEBUG - Declared extensions of language Java were converted to sonar.lang.patterns.java : /.java,/.jav
17:45:35.796 DEBUG - Declared extensions of language Web were converted to sonar.lang.patterns.web : /.html,/.xhtml,/.rhtml,/.shtml
17:45:35.798 DEBUG - Declared extensions of language XML were converted to sonar.lang.patterns.xml : */.xml
17:45:35.798 DEBUG - Declared extensions of language Visual Basic .NET were converted to sonar.lang.patterns.vbnet : */.vb
17:45:35.799 DEBUG - Declared extensions of language C were converted to sonar.lang.patterns.c : /.c,/.h
17:45:35.801 DEBUG - Declared extensions of language C++ were converted to sonar.lang.patterns.cpp : /.cc,/.cpp,/.cxx,/.c++,/.hh,/.hpp,/.hxx,/.h++,*/.ipp
17:45:35.802 DEBUG - Declared extensions of language Objective-C were converted to sonar.lang.patterns.objc : */.m
17:45:35.802 DEBUG - Declared extensions of language Python were converted to sonar.lang.patterns.py : */.py
17:45:35.803 DEBUG - Declared extensions of language JavaScript were converted to sonar.lang.patterns.js : */.js
17:45:35.804 DEBUG - Declared extensions of language JSP were converted to sonar.lang.patterns.jsp : */.jsp
17:45:35.805 DEBUG - Declared extensions of language Groovy were converted to sonar.lang.patterns.grvy : */.groovy
17:45:35.805 DEBUG - Declared extensions of language COBOL were converted to sonar.lang.patterns.cobol :
17:45:35.806 DEBUG - Declared extensions of language Lua were converted to sonar.lang.patterns.lua : */.lua
17:45:35.808 DEBUG - Declared extensions of language ABAP were converted to sonar.lang.patterns.abap : /.abap,/.ab4,*/.flow
17:45:35.822 DEBUG - Language of file ‘src/main/java/com/mark/apple/service/web/package-info.java’ is detected to be ‘java’
17:45:35.847 INFO - 1 files indexed
17:45:35.854 INFO - Quality profile for java: Sonar way
17:45:36.024 WARN - —————————————————————-
17:45:36.025 WARN - Sonargraph Integration: Skipping project mark-apple-servcie-web [mark-apple-servcie-web], since no Sonargraph rules are activated in current SonarQube quality profile [Sonar way].
17:45:36.027 WARN - —————————————————————-
17:45:36.042 DEBUG - Code colorizer, supported languages: jsp,erlang
17:45:38.150 DEBUG - ‘Generic Coverage Report’ skipped because one of the required properties is missing
17:45:38.151 DEBUG - ‘Generic Test Executions Report’ skipped because one of the required properties is missing
17:45:38.155 DEBUG - ‘CSS Analyzer Sensor’ skipped because there is no related file in current project
17:45:38.156 DEBUG - ‘SCSS Analyzer Sensor’ skipped because there is no related file in current project
17:45:38.157 DEBUG - ‘Less Analyzer Sensor’ skipped because there is no related file in current project
17:45:38.158 DEBUG - ‘JSON Squid Sensor’ skipped because there is no related file in current project
17:45:38.159 DEBUG - ‘Java Properties Squid Sensor’ skipped because there is no related file in current project
17:45:38.159 DEBUG - ‘C#’ skipped because there is no related file in current project
17:45:38.161 DEBUG - ‘Web’ skipped because there is no related file in current project
17:45:38.164 DEBUG - ‘VB.NET’ skipped because there is no related file in current project
17:45:38.165 DEBUG - ‘C’ skipped because there is no related file in current project
17:45:38.166 DEBUG - ‘CPP’ skipped because there is no related file in current project
17:45:38.166 DEBUG - ‘Objective-C’ skipped because there is no related file in current project
17:45:38.168 DEBUG - ‘gcov’ skipped because there is no related file in current project
17:45:38.168 DEBUG - ‘llvm-cov’ skipped because there is no related file in current project
17:45:38.170 DEBUG - ‘cppunit’ skipped because there is no related file in current project
17:45:38.171 DEBUG - ‘VisualStudioCoverage’ skipped because there is no related file in current project
17:45:38.174 DEBUG - ‘bullseye’ skipped because there is no related file in current project
17:45:38.175 DEBUG - ‘Python Squid Sensor’ skipped because there is no related file in current project
17:45:38.176 DEBUG - ‘jDepend sensor’ skipped because there is no related rule activated in the quality profile
17:45:38.177 DEBUG - ‘JavaScript Squid Sensor’ skipped because there is no related file in current project
17:45:38.177 DEBUG - ‘CodeNarc’ skipped because there is no related file in current project
17:45:38.179 DEBUG - ‘GroovySensor’ skipped because there is no related file in current project
17:45:38.180 DEBUG - ‘GroovySurefireSensor’ skipped because there is no related file in current project
17:45:38.181 DEBUG - ‘Groovy CoberturaSensor’ skipped because there is no related file in current project
17:45:38.184 DEBUG - ‘Groovy JaCoCoSensor’ skipped because there is no related file in current project
17:45:38.185 DEBUG - ‘Groovy JaCoCoItSensor’ skipped because there is no related file in current project
17:45:38.185 DEBUG - ‘Groovy JaCoCoOverallSensor’ skipped because there is no related file in current project
17:45:38.186 DEBUG - ‘CobolSquidSensor’ skipped because there is no related file in current project
17:45:38.188 DEBUG - ‘Lua’ skipped because there is no related file in current project
17:45:38.188 DEBUG - ‘Lua Cobertura’ skipped because there is no related file in current project
17:45:38.190 DEBUG - ‘AbapSquidSensor’ skipped because there is no related file in current project
17:45:38.196 DEBUG - Sensors : Lines Sensor -> JavaSquidSensor -> Sonar-Sonargraph-Plugin [3.5] -> SCM Sensor -> Embedded CSS Analyzer Sensor -> Coverage Report Import -> Coverage Report Import -> Unit Test Results Import -> SurefireSensor -> JaCoCoSensor -> XmlFileSensor -> Pitest Sensor -> Coverage Report Import -> Coverage Report Import -> Unit Test Results Import -> SmellMeasuresSensor -> Packages sensor -> FindBugs Sensor -> Zero Coverage Sensor -> Code Colorizer Sensor -> CPD Block Indexer
INFO: ————————————————————————
INFO: EXECUTION FAILURE
INFO: ————————————————————————
Total time: 9.048s
Final Memory: 26M/335M
INFO: ————————————————————————
ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
at org.sonar.runner.impl.BatchLauncher 1.delegateExecution(BatchLauncher.java:91)atorg.sonar.runner.impl.BatchLauncher 1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
at org.sonar.runner.api.Runner.execute(Runner.java:100)
at org.sonar.runner.Main.executeTask(Main.java:70)
at org.sonar.runner.Main.execute(Main.java:59)
at org.sonar.runner.Main.main(Main.java:53)
Caused by: com.sonarsource.devcockpit.D.A.B.A: No license for devcockpit

D:\Program Files\Software Repository\Git Repository\mark-apple-service-web>

你可能感兴趣的:(前端开发)