Skip to Content
持續交付|使用Java
book

持續交付|使用Java

by Daniel Bryant, Abraham Marín-Pérez
July 2019
Intermediate to advanced
480 pages
9h 35m
Chinese
GoTop Information, Inc.
Content preview from 持續交付|使用Java
組建 Java app |
97
classes: $(CLASSES:.java=.class)
clean:
$(RM) *.class
或許在許多 J AVA 開發者眼中,Make 看起來很冗長,但如果你使用的生成環境資源有
限且不能運行 Gradle Maven,或是在組建多語言專案,這種工具值得學習。
選擇組建工具
Maven 長期以來一直是預設的 Java 組建工具,主要原因是它標準化的組建程序與結構。
如果你知道如何組建一個 Maven 專案,你就知道如何組建所有的 Maven 專案。但是,
Gradle 在過去幾年來已經越來越受歡迎,最大的原因可能是
build.gradle
組建腳本的簡
潔特性。如果你曾經參與一個大型的 Maven 專案,應該記得瀏覽大型的 XML 檔案有多
麼困難。選擇組建工具通常是開始進行 Java 新專案的第一步,這可能是個終身的承諾,
因為改用別的組建工具可不是愉快的體驗。那麼,你該選擇哪一種工具?
Ant + Ivy
如果你的組織大量投資這種工具,或你正在遷移 / 升級一個已經使用這種工具的專
案,它就是個好選擇。
你可以完全控制專案的目錄結構、組建工具,以及組建生命週期。
如果你的組織希望讓事情標準化,它就不是個好選擇,因為 Ant 提供的彈性意味著
組建腳本經常會在布局與程序上有所差異。
一般而言,不建議在使用現代框架(例如 Dropwizard Spring Boot)的專案中使用
它。
Maven
事實上,這是組建 Java app ...
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

精實企業|高績效組織如何達成創新規模化

精實企業|高績效組織如何達成創新規模化

Jez Humble, Joanne Molesky, Barry O'Reilly
管理Kubernetes

管理Kubernetes

Brendan Burns, Craig Tracey
精通機器學習|使用Python

精通機器學習|使用Python

Sarah Guido, Andreas C. Mueller
数字化转型:企业破局的34 个锦囊

数字化转型:企业破局的34 个锦囊

Gary O’Brien, Xiao Guo, Mike Mason

Publisher Resources

ISBN: 9789865021740