1

我为 .net 项目安装了 Maven、Sonar 和相应的插件。我也可以使用 Maven 构建我的项目。当我运行时,mvn dotnet:compile- 构建成功同样,coverage, cpd, clean, package, unpack也成功。

但是,当我运行mvn dotnet:fxcop然后mvn dotnet:metrics构建失败时。错误消息显示 -

[ERROR] Failed to execute goal org.codehaus.sonar-plugins.dotnet:maven-dotnet-pl
ugin:0.5:fxcop (default-cli) on project ComplaintManagementSystem: FxCop binarie
s were not found  

[ERROR] Failed to execute goal org.codehaus.sonar-plugins.dotnet:maven-dotnet-pl
ugin:0.5:metrics (default-cli) on project ComplaintManagementSystem: SourceMonit
or binaries were not found 

我能够使用 fxcop 和 SourceMonitor 工具分析使用 fxcop 和 SourceMonitor 的项目。

我该如何解决这个错误?这是配置问题吗?我应该对 pom.xml 文件进行任何更改吗?

4

2 回答 2

0

Sonar 中 .NET 项目的集成已经发展了很多。这些插件现在是 1.3 版,它们不再需要 Maven。

您可以在我们的 Wiki 上查看文档和示例:http: //docs.codehaus.org/display/SONAR/C-Sharp+Plugins+Ecosystem

于 2012-04-26T16:02:53.707 回答
0

As Fabrice said, the maven dotnet plugin is no more mandatory to run suonar. However if you want to use this plugin to dun theses tools, the only things thta is missing is a a couple of configuration properties specifying where to find the binaries of FxCop and SourceMonitor. For more details see below the settings.xml example : http://maven-dotnet-plugin.appspot.com/settings.html

Hope it helps

于 2012-04-29T15:42:07.543 回答