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
74
| 第五章
包裝
將編譯過的程式碼包裝成可發布的格式,例如 JAR
檢查
對整合測試的結果執行每一項檢查,以確保它符合品質標準。
安裝
將包裝安裝到本地存放區,讓其他專案可將它當成本地依賴項目來使用。
部署
在組建環境中完成工作之後,將最終產生的包裝複製到遠端的存放區,讓其他的開
發者或專案使用。
這些步驟都可以手動完成,事實上,我建議每位開發者在職業生涯都至少要手動完成這
些步驟一次。回去採取基本的做法,並使用基本的程序與工具,可讓你學到很多東西。
javacjava Classpath 做實驗
使用
javac
java
命令列公用程式來編譯與執行簡單的 Java,並且特別注意類
別路徑問題的管理方式可讓你學到很多東西。我們認為,每位 Java 開發者都應
該了解
javac
的基本知識、工作目錄、管理類別路徑的挑戰,以及核心的 JVM
Java
命令列旗標。
雖然手動探索組建步驟來學習是有價值的,但重複做這件事沒有任何好處。原因不但是
你這位開發者應該將寶貴的時間用在別的地方,將程序自動化也可以提升程序的可重複
性與可靠性。你可以使用組建工具來將編譯、依賴項目管理、測試與軟體 app 的包裝自
動化。
將組建程序自動化
許多 Java app 框架、IDE 與平台都提供現成的組建工具,它們通常都與開發者工作流程
密切整合,有時它們使用定制的實作,有時使用專門的組建工具。雖然凡事總有例外,
但是使用專門的組建工具通常是有好處的,因為它可讓參與專案的所有開發者成功地組
app,無論他們使用哪種作業系統、IDE ...
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