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持续交付
72
5
构建
Java
应用程序
Maven
Apache Maven
构建工具侧重于“约定优于配置”,主要是为了让开发人员在最短时间内
理解项目的完整状态。为了实现这一目标,
Maven
试图解决几个关键问题
y
简化构建过程
y
提供一个统一的构建系统
y
提供有质量的项目信息
y
为最佳实践开发提供指导
y
允许无缝迁移到新的功能
Maven
可以通过项目的
POM
文件以及一些所有项目共享的插件来构建项目,从而提供
一套统一的构建系统。一旦你熟悉了
Maven
项目的构建方式,你就了解了所有
Maven
项目的构建方式,从而可在多个项目切换时节省大量时间。
Maven
旨在用当前开发的最
佳实践原则,来指导项目的发展。例如,单元测试的规范、执行和报告都是
Maven
正常
构建周期的一部分。目前,单元测试的最佳实践指导包括以下方面
y
将测试源代码保存在一个并行的源代码树中。
y
使用测试用例命名约定来定位和执行测试。
y
在测试用例中配置环境,而不是通过改变构建环境来进行测试。
y
Maven
还希望能够通过单元测试来辅助项目的工作流程,例如发布管理和问题跟
踪等方面。
Maven
还提供了一些关于项目目录结构的指导建议,当你掌握后,就可以轻松理解那
些按照
Maven
默认配置进行设置的项目。在
Maven
中有三个内置的构建生命周期
default
clean
site
default
生命周期用来部署项目,
clean
生命周期用来清理项目,
site
生命周期用来生成项目的站点文档。每个构建生命周期都由一组不同的构建阶段来
定义,每个构建阶段都表示生命周期中的一个过程。 ...
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