我为 .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 文件进行任何更改吗?