Maven : A Developer's Notebook
暫譯: Maven:開發者筆記本
Vincent Massol, Timothy M. O'Brien
- 出版商: O'Reilly
- 出版日期: 2005-07-12
- 售價: $1,270
- 貴賓價: 9.5 折 $1,207
- 語言: 英文
- 頁數: 224
- 裝訂: Paperback
- ISBN: 0596007507
- ISBN-13: 9780596007508
已過版
買這商品的人也買了...
-
$1,590$1,511 -
$490$387 -
$1,150$1,127 -
$1,200$1,176 -
$2,560$2,432 -
$800$632 -
$590$466 -
$2,480$2,356 -
$560$476 -
$780$616 -
$650$507 -
$1,050$998 -
$1,742Linux Device Drivers, 3/e (Paperback)
-
$620$490 -
$880$748 -
$580$493 -
$820$648 -
$880$695 -
$890$757 -
$780$663 -
$650$507 -
$2,390$2,271 -
$620$490 -
$620$527 -
$580$458
商品描述
Description:
Maven is a new project management and comprehension tool which provides an elegant way to share build logic across projects. In terms of capabilities, Maven is an improvement to Apache Ant-thanks to numerous plug-ins and built-in integration with unit testing frameworks such as JUnit. Tired of writing the same build logic for every project? Using Maven, you can leverage the experience of the community to avoid the tedious process of creating yet another build script for each new project.
Maven: A Developer's Notebook begins by introducing you to the concept of project object model (POM), and then offers further details on the essential features of Maven. Like all titles in O'Reilly's Developer's Notebook series, this no-nonsense book skips the boring prose and cuts right to the chase. It's an approach that forces you to get your hands dirty by working through a series of poignant labs-exercises that speak to you instead of at you.
Plus, Maven: A Developer's Notebook is the first book on the subject to hit the market, so you know the information is fresh and timely. If you're a Java programmer, you'll be armed with all the critical information you need to get up to speed on this powerful new build tool. You'll discover how Maven can help you:
- manage a project's build, reporting, and documentation, all from a central piece of information
- break a complex project into a series of smaller subprojects
- report on code quality, unit tests, code duplication, and project activity
- create a custom remote repository
- build simple and complex plug-ins
In the end, you'll find yourself spending less time working on your project's build system and more time working on your project's code.
Table of Contents:
Foreword
The Developer's Notebook Series
Preface
Chapter 1. Maven Jump-Start
Installing Maven
Starting a New Project
Using Maven Behind a Proxy
Compiling and Testing a Project
Working with the Project Object Model
Listing Available Goals
Producing Debug Information
Adding a Dependency
Depending on Snapshots
Performing an Offline Build
Using the Maven Console
Generating an Eclipse Project
Using the Eclipse Maven Plug-in
Generating an Ant Build File
Migrating a Project from Ant to Maven
Generating Project Documentation
Telling Maven About Your Team
Pointing Maven at Source Control
Creating a Project Web Site
Customizing Site Reports
Chapter 2. Customizing Maven
Installing a Plug-in from a Remote Repository
Customizing Plug-in Behavior
Writing a Custom Goal
Defining a preGoal
Defining Custom Properties
Running the Program from a Custom Goal
Defining the Default Goal
Overriding Properties
Enumerating Dependencies
Customizing Site Look and Feel
Using the FAQ Plug-in
Chapter 3. Multiproject Maven
Dividing and Conquering
Using POM Inheritance
Writing the Quote Generator
Sharing Artifacts Through the Local Maven Repository
Using the WAR Plug-in
Using the Jetty Plug-in to Start a Web Application
Executing HtmlUnit Tests
Building All Subprojects Simultaneously
Creating Custom Top-Level Goals
Generating a Multiproject Web Site
Chapter 4. Project Reporting and Publishing
Reporting on Project Content
Reporting Testing Status
Reporting on Code Best Practices
Reporting on Duplicate Code
Generating a Quality Dashboard
Tracking Project Activity
Tracking Project Changes
Publishing Maven Artifacts
Announcing a Project Release
Reporting Project Releases
Publishing a Project Web Site
Chapter 5. Team Collaboration with Maven
Sharing a Maven Installation
Creating Your Own Remote Maven Repository
Setting Up a Continuous Integration Build
Using Binary Dependencies
Chapter 6. Writing Maven Plug-ins
Writing a Simple JAR Execution Plug-in
Installing a Plug-in from Its Sources
Testing a Plug-in
Writing a Complex Plug-in: The Logifier
Writing a Logging Aspect Using AspectJ
Using Plug-in Resources
Implementing the Logifier Build Logic
Executing the Logifier Plug-in
Adding Dynamic Dependencies
Writing a Plug-in That Generates Reports
Creating an XDoc File Using JSL
Publishing a Plug-in to a Remote Repository
Appendix: Maven Plug-ins
Plug-ins Reference
Auto-Downloading a Plug-in
Installing a Plug-in Manually
Depending on a Plug-in
Index
商品描述(中文翻譯)
描述:
Maven 是一個新的專案管理和理解工具,提供了一種優雅的方式來在專案之間共享建置邏輯。在功能方面,Maven 是對 Apache Ant 的改進,這要歸功於眾多的插件和與單元測試框架(如 JUnit)的內建整合。厭倦了為每個專案編寫相同的建置邏輯嗎?使用 Maven,您可以利用社群的經驗,避免為每個新專案創建另一個繁瑣的建置腳本。
《Maven: A Developer's Notebook》首先介紹專案物件模型(POM)的概念,然後提供有關 Maven 重要功能的進一步細節。與 O'Reilly 的開發者筆記系列中的所有書籍一樣,這本書跳過了無聊的散文,直接切入主題。這種方法迫使您通過一系列引人入勝的實驗來親自動手,而不是單純地接受知識。
此外,《Maven: A Developer's Notebook》是市場上第一本關於此主題的書籍,因此您可以確信所提供的信息是新鮮且及時的。如果您是一名 Java 程式設計師,您將獲得所有關鍵信息,以便快速掌握這個強大的新建置工具。您將發現 Maven 如何幫助您:
- 管理專案的建置、報告和文檔,所有信息都來自一個中央位置
- 將複雜的專案拆分為一系列較小的子專案
- 報告代碼質量、單元測試、代碼重複和專案活動
- 創建自定義的遠端儲存庫
- 建置簡單和複雜的插件
最終,您會發現自己在專案的建置系統上花費的時間更少,而在專案的代碼上花費的時間更多。
目錄:
前言
開發者筆記系列
序言
第 1 章. Maven 快速入門
- 安裝 Maven
- 開始一個新專案
- 在代理伺服器後使用 Maven
- 編譯和測試專案
- 使用專案物件模型
- 列出可用的目標
- 產生除錯信息
- 添加依賴
- 依賴快照
- 執行離線建置
- 使用 Maven 控制台
- 生成 Eclipse 專案
- 使用 Eclipse Maven 插件
- 生成 Ant 建置檔
- 將專案從 Ant 遷移到 Maven
- 生成專案文檔
- 告訴 Maven 關於您的團隊
- 指向源控制
- 創建專案網站
- 自定義網站報告
第 2 章. 自定義 Maven
- 從遠端儲存庫安裝插件
- 自定義插件行為
- 編寫自定義目標
- 定義 preGoal
- 定義自定義屬性
- 從自定義目標運行程式
- 定義預設目標
- 覆蓋屬性
- 列舉依賴
- 自定義網站外觀和感覺
- 使用 FAQ 插件
第 3 章. 多專案 Maven
- 分而治之
- 使用 POM 繼承
- 編寫報價生成器
- 通過本地 Maven 儲存庫共享工件
- 使用 WAR 插件
- 使用 Jetty 插件啟動 Web 應用程式
- 執行 HtmlUnit 測試
- 同時建置所有子專案
- 創建自定義頂層目標
- 生成多專案網站
第 4 章. 專案報告和發布
- 報告專案內容
- 報告測試狀態
- 報告代碼最佳實踐
- 報告重複代碼
- 生成質量儀表板
- 追蹤專案活動
- 追蹤專案變更
- 發布 Maven 工件
- 宣布專案版本
- 報告專案版本
- 發布專案網站
第 5 章. 與 Maven 的團隊協作
- 共享 Maven 安裝
- 創建自己的遠端 Maven 儲存庫
- 設置持續集成建置
- 使用二進位依賴
第 6 章. 編寫 Maven 插件
- 編寫簡單的 JAR 執行插件
- 從源碼安裝插件
- 測試插件
- 編寫複雜插件:Logifier
- 使用 AspectJ 編寫日誌方面
- 使用插件資源
- 實現 Logifier 建置邏輯
- 執行 Logifier 插件
- 添加動態依賴
- 編寫生成報告的插件
- 使用 JSL 創建 XDoc 檔案
- 將插件發布到遠端儲存庫
附錄:Maven 插件
- 插件參考
- 自動下載插件
- 手動安裝插件
- 依賴插件
索引