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持续交付
62
5
构建
Java
应用程序
确认
检查集成测试的运行结果,确保系统满足质量标准。
安装
将软件包安装到本地仓库中,以便在本地环境中用作其他项目的依赖项。
部署
在构建环境中完成部署,将最终的打包构件复制到远程仓库,以便与其他开发人员
和项目共享。
所有这些步骤都可以手动完成,实际上,我们建议每个开发人员都手动执行一下这些步
骤。通过复习基础知识以及使用基本的流程和工具,你可以学到很多东西。
使用
javac
java
Classpath
通过使用
javac
java
命令行工具来编译和执行简单的
Java
应用程序,你可以从
中学到很多东西,并且应该特别注意类路径的管理。我们相信每个
Java
开发人员
都应该学习
javac
的基础命令、工作目录、类路径管理以及核心的
java
命令行参数。
虽然手动构建有助于掌握知识,但是没必要一直这样做。自动化构建流程不仅能够节约
开发人员的(宝贵)时间,也可以让构建过程变得可重复和更加可靠。构建工具可以自
动完成软件应用程序的编译、依赖关系管理、测试和打包等工作。
自动化构建过程
许多
Java
应用程序框架、
IDE
和平台都提供了内置构建工具,并且通常可以与开发流程
无缝集成。你可以选择自己实现一个构建工具,也可以使用专业的构建工具。虽然不能
一概而论,但是使用专业的构建工具有很多好处,所有在项目上工作的开发人员都可以
成功地构建应用程序,而不用关心他们使用的是什么样的操作系统、
IDE
或者框架。在
现代的
Java
项目中,我们通常使用
Maven
Gradle
来进行构建,但是也存在其他构建
工具,我们将在本章后面部分进行讨论。 ...
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