-1

在 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

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

4

1 回答 1

0

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

于 2013-01-08T16:36:14.863 回答