你对Maven有什么印象? [英] What are your impressions of Maven?

查看:117
本文介绍了你对Maven有什么印象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑将Maven用于我管理的Java开源项目。



然而,在过去,Maven并不总是拥有最好的声誉。你现在对Maven有什么印象?

解决方案

对于一个开源项目,Maven有一些优势,特别是对于你的贡献者(例如mvn eclipse:eclipse)。 / p>

如果你选择Maven,你必须遵循的一条规则是:不要与工具作斗争。准确地为您的项目布局Maven的建议,遵循其所有约定和最佳实践。你与Maven进行的每一场小小的争斗都是你不会为你的项目编写代码的一天。



还要事先考虑你想要部署你的工件的地方(你打算托管你自己的存储库吗?)。



并且不要害怕使用Maven以外的东西(例如Ant)。项目本身的成功将是项目本身,而不是它的构建工具(只要你选择Ant和Maven都是最好的构建工具)。


I am considering using Maven for a Java open source project I manage.

In the past, however, Maven has not always had the best reputation. What are your impressions of Maven, at this time?

解决方案

For an open-source project, Maven has some advantages, especially for your contributors (eg mvn eclipse:eclipse).

If you do go with Maven, the one rule you must follow religiously is: don't fight the tool. Layout your project exactly how Maven recommends, follow all its conventions and best practices. Every little fight you get into with Maven is a day you won't be spending writing code for your project.

Also consider up front where you want to deploy your artifacts (are you going to host your own repository?).

And don't be afraid to go with something other than Maven (eg Ant). The success of your project will be the project itself, not its build tool (so long as you choose a best-of-breed build tool, which both Ant and Maven are).

这篇关于你对Maven有什么印象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆