Skip to Content
Java持续交付
book

Java持续交付

by Daniel Bryant, Abraham Marín-Pérez
November 2019
Beginner to intermediate
406 pages
9h 21m
Chinese
Publishing House of Electronics Industry
Content preview from Java持续交付
如何选择一个构建工具
83
default: classes
classes: $(CLASSES:.java=.class)
clean:
$(RM) *.class
对于许多
Java
开发人员来说,
Make
文件可能更加冗长,但是对于一些资源有限、无法
运行
Maven
或者
Gradle
的构建环境,或者一些多语言项目,
Make
还是有很大作用的。
如何选择一个构建工具
在很长时间里,
Maven
一直是
Java
默认的构建工具,主要是因为它标准化的构建流程和
结构。如果你知道如何构建一个
Maven
项目,那么你就知道了如何构建所有的
Maven
项目。但是,
Gradle
在过去几年中受欢迎的程度有所提高,很可能是因为
build.gradle
构建脚本的简捷易懂。如果你参与过一个大型的
Maven
项目,那么就会知道阅读大量
XML
文件的困难。选择一个合适的构建工具,通常是开启一个新
Java
项目重要的第一步,
而且这会是一个长期的选择,因为从一个构建工具迁移到另一个构建工具并不是一种愉
快的体验。
那么,你应该选择哪种工具呢?
Ant + Ivy
y
如果你的企业已经在
Ant
上投入了大量的资金和人力,或者你打算迁移或升级一
个已经使用
Ant
的项目,那么这是一个不错的选择。
y
你可以完全控制项目的目录结构、构建工具和构建生命周期。
y
如果你的企业喜欢标准化,那么这不是一个合适的选择,因为
Ant
的灵活性意味
着构建脚本经常会在目录结构和构建流程方面发生变化。
y
一般不推荐使用
Dropwizard
Spring Boot
等框架的新项目选择这套工具。 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu
Java性能优化实践:JVM调优策略、工具与技巧

Java性能优化实践:JVM调优策略、工具与技巧

Benjamin J. Evans, James Gough, Chris Newland
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
C++语言导学(原书第2版)

C++语言导学(原书第2版)

本贾尼 斯特劳斯特鲁普

Publisher Resources

ISBN: 9787121374425