-2

We are currently using ANT as our build tool and we are proposing our developers to use Maven as their build tool.

Our developers are resisting this change and asking us to give the benefit we will achieve by migrating to Maven. From the blogs what I read Maven can help in reducing build time when compared with ANT.

Can you please give us any reasoning how MAVEN Build script can reduce the build time when compared to ANT? Is this statement true in the first place?

NOTE: Ours is a legacy application that is developed in Core Java.

Are they are any other powerful feature in Maven which DEV might be intrested in? Which can help us in getting their buy for migration to Maven?

4

2 回答 2

0

传递依赖解析,标准化构建,大量插件,与 Maven 存储库一起工作,Maven 存储库是存储 Java 工件的事实上的标准。

于 2019-03-28T20:38:32.833 回答
-1
  • maven可以比 ant 快,如果你知道怎么做的话
    • 将您的代码结构化为模块
    • 使用(多个)模块的并行构建(ANT 真正没有的功能)
    • 使用半增量构建(使用最新的编译器插件) - 仅构建已更改文件或依赖于其他已更改模块的模块

其他好处是

  • maven可以帮助您,以更标准化和结构化的方式描述您的构建
    • 标准项目布局(文件夹 src/main/java src/test/java ...)
    • 具有严格执行步骤路径的清晰构建过程
  • 明确定义使用的依赖项
    • 第三方依赖
    • 项目内依赖
  • 许多帮助者进行清晰的 CI/CD 设置,例如
    • 支持 gitflow 的插件
    • 支持特殊发布流程的插件
    • 支持集成测试的插件
于 2019-03-28T22:47:45.713 回答