最佳“通用” Maven插件 [英] Best "General Purpose" Maven plugins
本文介绍了最佳“通用” Maven插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们正在转向Maven,我知道有一个不同的插件和世界的世界。扩展。哪些是你推荐用于一般用途的最好的?
We are just moving to Maven, and I understand there is a world of different plugins & extensions. Which are the best ones you recommend for general usage?
(请在每个答案的插件上)
(On plugin per answer please)
推荐答案
我发现这些插件在我的日常工作中最有用:
I find these plugins the most useful in my day-to-day work:
- surefire - 用于单元测试
- 依赖关系 - 用于模块依赖性分析
- cobertura - 用于单元测试覆盖率分析
- liquibase - 用于运行数据库迁移
- 程序集 - 用于创建包含应用程序所需的所有依赖项的单个可执行jar文件
- surefire - for unit testing
- dependency - for module dependency analysis
- cobertura - for unit test coverage analysis
- liquibase - for running database migrations
- assembly - for creating single executable jars containing all the required dependencies of an app
re是如此多的探索,当然还取决于你的项目需求。当然,我使用的最有用的插件之一就是我自己为某些特定需求编写的插件。这是maven最有价值的功能之一 - 能够轻松扩展它。
There is so much more explore and much depends on your project needs of course. And of course one of the most useful plugins that I use are the ones I wrote myself for some specific needs. This is one of the most valuable features of maven - the ability to easily extend it.
这篇关于最佳“通用” Maven插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文