【发布时间】: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