分析csharp项目时,sonar-maven-plugin出错

时间:2013-01-05 08:50:03

标签: maven-plugin sonarqube

在分析声纳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

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

1 个答案:

答案 0 :(得分:0)

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