集成声纳 maven - fxcop 和源监视器插件时出错
我安装了 Maven、Sonar 以及 .net 项目的相应插件。我也可以使用 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 文件进行任何更改吗?
I installed Maven, Sonar and the respective plugins for .net projects. I am able to build my project using Maven too.
When i run, mvn dotnet:compile
- build success
Similarly, coverage, cpd, clean, package, unpack
succeed too.
But, when i run mvn dotnet:fxcop
and mvn dotnet:metrics
then build fails.
The error message reads -
[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
I am able to analyze project using fxcop and SourceMonitor using fxcop and SourceMonitor tools.
How can i resolve this error? Is this a configuration issue? SHould I make any changes to the pom.xml file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Sonar 中 .NET 项目的集成已经发展了很多。这些插件现在版本为 1.3,不再需要 Maven。
您可以在我们的 Wiki 上查看文档和示例:http://docs。 codehaus.org/display/SONAR/C-Sharp+Plugins+Ecosystem
The integration for .NET projects in Sonar has eveolved a lot. The plugins are now in version 1.3 and they do not require Maven anymore.
You can check the documentation and examples on our Wiki: http://docs.codehaus.org/display/SONAR/C-Sharp+Plugins+Ecosystem
正如 Fabrice 所说,maven dotnet 插件不再强制运行 suonar。但是,如果您想使用此插件来调用这些工具,唯一缺少的是几个配置属性,指定在哪里可以找到 FxCop 和 SourceMonitor 的二进制文件。有关更多详细信息,请参阅下面的 settings.xml 示例:http://maven-dotnet-plugin。 appspot.com/settings.html
希望有帮助
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