所有Java Build工具都有什么用? [英] What's with all the Java Build tools?

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

问题描述

使用ant,maven和buildr有什么意义?不会在eclipse或netbeans中使用构建工作正常吗?我只是好奇扩展构建工具的目的和好处是什么。

what's the point of using ant, maven, and buildr? won't the using build in eclipse or netbeans work fine? i'm just curious what the purpose and benefit of extended build tools are.

推荐答案


  • 依赖关系管理:构建工具遵循组件模型,该组件模型提供有关查找依赖关系的位置的提示。在Eclipse / Netbeans中,您必须依赖于JAR,而您实际上并不知道此JAR是否已更新。使用这些构建工具,他们了解依赖关系中的更新(通常是因为与源代码控制存储库的良好集成),重新计算传递依赖关系并确保所有内容始终使用最新版本构建。

    • Dependency Management: The build tools follow a component model that provides hints on where to look for dependencies. In Eclipse / Netbeans, you have to depend on a JAR and you don't really know if this JAR has been updated or not. With these build tools, they 'know' updates in dependencies (generally because of a good integration with your source control repository), recalculate transitive dependencies and ensure that everything is always built with the latest versions.

      访问控制:除了类级访问控制之外,Java没有更高的抽象。使用这些构建工具,您可以准确指定要依赖于哪些项目,并以更高的粒度控制可见性和访问权限。

      Access Control: Java, apart from class level access control, has no higher abstraction. With these build tools you can specify exactly which projects you want to depend on you and control visibility and access at a higher level of granularity.

      自定义控制:Eclipse / Netbeans构建始终构建JAR文件。使用自定义构建机制,如果您愿意,可以使用额外的元数据信息构建自己的自定义(公司内部)存档。

      Custom Control: The Eclipse / Netbeans build always builds JAR files. With custom build mechanisms, you could build your own custom (company-internal) archive with extra metadata information, if you so wish.

      插件:构建工具附带了各种插件,可以在构建期间执行各种操作。从生成Javadocs等基础知识到运行测试和获取代码覆盖率,静态分析,生成报告等更重要的事情。

      Plugins: There are a variety of plugins that come with build tools which can do various things during build. From something basic like generating Javadocs to something more non-trivial like running tests and getting code coverage, static analysis, generation of reports, etc.

      传输:某些构建系统还管理存档的传输 - 从开发系统到部署或生产系统。因此,您可以配置传输路由,时间表等。

      Transport: Some build systems also manage transport of archives - from a development system to a deployment or production system. So, you can configure transport routes, schedules and such.

      查看一些持续集成服务器,例如 CruiseControl 哈德森。此外, Maven的功能页面提供了一些您想要了解的信息。

      Take a look at some continuous integration servers like CruiseControl or Hudson. Also, the features page of Maven provides some insight into what you want to know.

      这篇关于所有Java Build工具都有什么用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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