【问题标题】:Error on sonar-maven-plugin when analyzing csharp projects分析 csharp 项目时 sonar-maven-plugin 出错
【发布时间】:2013-01-05 08:50:03
【问题描述】:

在 sonar 3.1.1 中分析 csharp 项目时出现错误
它无法执行 sonar-maven-plugin。这是我的日志文件数据。

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on 
project MyProject: Can not execute Sonar: Error occured while reading Visual Studio files.   
Could not evaluate the expression com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl@ec73b9 on project
D:\projects\MyProject\src\framework\MyPro\MyPro.csproj: XPathExpressionException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration
cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read   
the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVE/MojoExecutionException

请帮我解决这个问题...

【问题讨论】:

  • 您能指定您使用的 C#/.NET 插件的版本吗?
  • 我正在使用 sonar-dotnet-plugin-2.1。
  • 不可能,这个版本还没出...
  • 对不起..这是我的错误。它的 2.0

标签: maven-plugin sonarqube


【解决方案1】:

您可能添加了一个额外的 JAR,它弄乱了类路径。您应该尝试重新安装,一切都应该没问题。

【讨论】:

    猜你喜欢
    • 2017-01-21
    • 1970-01-01
    • 1970-01-01
    • 2018-05-19
    • 2012-06-04
    • 1970-01-01
    • 2018-04-08
    • 1970-01-01
    相关资源
    最近更新 更多