Sonarqube Sonar-CSharp插件生态系统-在尝试获取下一个元素名称时无法执行Sonar:Error
Sonar CSharp插件生态系统在处理结束时抛出错误。Sonarqube Sonar-CSharp插件生态系统-在尝试获取下一个元素名称时无法执行Sonar:Error,sonarqube,Sonarqube,Sonar CSharp插件生态系统在处理结束时抛出错误。 我检查了coverage-report.xml,它只包含一行 <PartCoverReport version="4.0" date="2011-08-10T10:09:12.1721003+08:00" /> 我是C#plugins的开发者之一。 您更应该通过向sonar用户邮件列表发送邮件来寻求帮助。 您的partcover报告显示partcover未能成功收集测试执行期间的覆盖率度量。 您有3种解决方案: 试试看n
我检查了coverage-report.xml,它只包含一行
<PartCoverReport version="4.0" date="2011-08-10T10:09:12.1721003+08:00" />
我是C#plugins的开发者之一。 您更应该通过向sonar用户邮件列表发送邮件来寻求帮助。 您的partcover报告显示partcover未能成功收集测试执行期间的覆盖率度量。 您有3种解决方案:
- 试试看ncover3
- 跳过覆盖范围
关于我已经试用了ncover3,它很有效。我的本地工作站是windows7(64位)。我认为partcover不完全支持windows7(64位)。谢谢你的回答。
[INFO] Sensor org.sonar.plugins.csharp.fxcop.FxCopSensor@e6529c...
[INFO] Microsoft (R) FxCop Command-Line Tool, Version 10.0 (10.0.30319.1) X86
[INFO] Copyright (C) Microsoft Corporation, All Rights Reserved.
[INFO]
[INFO] Loading C:\JanusPilot\SonarDotnetExample\Example.Application\target\sonar \sonar.FxCop...
[INFO] Loaded DesignRules.dll...
[INFO] Loaded GlobalizationRules.dll...
[INFO] Loaded NamingRules.dll...
[INFO] Loaded PerformanceRules.dll...
[INFO] Loaded Example.Application.exe...
[INFO] Initializing Introspection engine...
[INFO] Analyzing...
[INFO] Analysis Complete.
[INFO] Writing 1 messages...
[INFO] Writing report to C:\JanusPilot\SonarDotnetExample\Example.Application\t
arget\sonar\fxcop-report.xml...
[INFO] Done:00:00:01.1050632
[INFO] Sensor org.sonar.plugins.csharp.fxcop.FxCopSensor@e6529c done: 2342 ms
[INFO] Sensor org.sonar.plugins.csharp.gallio.CoverageReportSensor@eb73e...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:14.037s
[INFO] Finished at: Wed Aug 10 10:13:29 CST 2011
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0-beta-2:s
onar (default-cli) on project example: Can not execute Sonar: Error while trying
to get the next element name: ParseError at [row,col]:[1,75]
[ERROR] Message: Can not call 'getLocalName(): cursor does not point to a valid
node (curr event [null]; cursor state CLOSED)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException