具有许多报告的 Maven 多模块项目:寻找示例
是否有一个开源项目可以作为如何使用 maven 的好例子网站插件来生成报告?我希望它
- 由许多模块组成,可能是分层结构,
- 使用尽可能多的插件(surefire,jxr,pmd,findbugs,javadoc,checkstyle,你能想到的)
- 报告应该被聚合:如果某些测试失败,你想要有一个页面显示所有测试失败的模块,不仅有无数个需要检查的单独页面,还
- 包括企业内容(WAR、EAR 等),但这并不那么重要。
我们的想法是拥有一个可以让你收集关于如何完成和什么是可能的想法的东西。
Is there an open source project that can serve as a good example on how to use the maven site plugin to generate reports? I would prefer it to
- consist of many modules, possibly hierarchically structured
- use as many plugins as possible (surefire, jxr, pmd, findbugs, javadoc, checkstyle, you name it)
- the reports should be aggregated: if some tests fail you want to have a single page that shows all modules with failing tests, not only a gazillion individual pages to check
- include enterprisey stuff (WAR, EAR etc), but this is not so important.
The idea is to have something where you can gather ideas on how it is done and what is possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我放弃了尝试使用 maven-site-plugin 聚合复杂的多模块项目的报告。为此,我使用 Sonar,它更强大(具有指标随时间演变、聚合、整洁等功能)向下钻取等)并且可以正常工作。看看 Nemo,在线演示实例并哭泣。
I gave up trying to aggregate reports of a complex multi-modules project with the maven-site-plugin. For this, I use Sonar, it's much more powerful (with features like evolution of metrics over time, aggregation, neat drill down, etc) and just works. Have a look at Nemo, the online demo instance and cry.
有关示例,请参阅 http://www. bartswennenhuis.nl/2013/12/maven-aggregate-reports-for-multi-module-projects/。 Findbugs 不支持聚合报告。
For an example see http://www.bartswennenhuis.nl/2013/12/maven-aggregate-reports-for-multi-module-projects/. Findbugs does not support aggregate reports.
我觉得没有这样的项目,如果有的话我也想知道。为了在 Maven 中找到东西,你必须知道你在寻找什么(这与你想要完成的不完全相同)。
如果它有任何帮助,我正在使用 MAVEN 构建 13 个模块项目,使用 cobertura maven 插件、surefire、javadoc 等..它很有魅力,你为什么问这个问题,你想确定 maven 的功能还是?
I don't think there is such a project, if there is I want to know it as well. In order to find things in maven you have to know what you're looking for(which is not exactly the same with what you want to accomplish).
If its any help I'm building 13 module project with MAVEN, use cobertura maven plugin, surefire, javadoc, etc .. it works as charm, why are you asking this question, you want to determine the capabilities of maven or ?
这实际上是对你的问题的回答。请查看 Apache Directory 项目。它包含两个大块:目录服务器和工具支持(基于 Eclipse)。
您可以在此处找到 Apache Directory Studio 的 SVN 存储库(这是一个完整的目录工具平台,旨在与任何 LDAP 服务器一起使用): http://svn.apache.org/repos/asf/directory/studio/trunk/
看一下 POM 文件 ( http://svn.apache.org/repos/asf/directory/studio/trunk /pom.xml )这个多模块项目。它由许多模块组成,使用您正在使用的大部分插件,并且还聚合了一些报告。
this is actually a response to your question. please take a look at the Apache Directory project. it contains two big blocks: the directory server and the tooling support (Eclipse based).
you can find the SVN repository of the Apache Directory Studio (this is a complete directory tooling platform intended to be used with any LDAP server) here: http://svn.apache.org/repos/asf/directory/studio/trunk/
take a look at the POM file ( http://svn.apache.org/repos/asf/directory/studio/trunk/pom.xml ) of this multi module project. it consists out of lots of modules, uses most of the plug-ins you're using and it also aggregates some of the reports.this
您可以使用 Violations Maven Plugin 来聚合 Findbugs(以及许多其他静态代码分析)报告。
分析后需要运行。它将解析他们的报告文件并将它们呈现在一份统一的报告中。根据发现的违规数量,它可以选择使构建失败。
You can use Violations Maven Plugin to aggregate Findbugs (and many other static code analysis) reports.
It needs to run after the analysis. It will parse their report-files and present them in one unified report. It can, optionally, fail the build depending on number of violations found.