Posted on 2009-03-16 10:01
itVincent 閱讀(1024)
評(píng)論(0) 編輯 收藏
Maven權(quán)威指南中文版.rar
maven教程中文版
Maven權(quán)威指南是一本關(guān)于Apache Maven的書。
http://yisnow.com/soft/sort01/sort02/sort05/down-1395.html
--------------------------------------------------------------------------------
Copyright
1. Creative Commons BY-ND-NC
Foreword: Beta 0.16
Preface
1. How to Use this Book
2. Your Feedback
3. Font Conventions
4. Maven Writing Conventions
5. Acknowledgements
1. 介紹 Apache Maven
1.1. Maven... 它是什么?
1.2. 約定優(yōu)于配置(Convention Over Configuration)
1.3. 一個(gè)一般的接口
1.4. 基于Maven插件的全局性重用
1.5. 一個(gè)“項(xiàng)目”的概念模型
1.6. Maven是Ant的另一種選擇么?
1.7. 比較Maven和Ant
1.8. 總結(jié)
2. 安裝和運(yùn)行Maven
2.1. 驗(yàn)證你的Java安裝
2.2. 下載Maven
2.3. 安裝Maven
2.3.1. 在Mac OSX上安裝Maven
2.3.2. 在Microsoft Windows上安裝Maven
2.3.3. 在Linux上安裝Maven
2.3.4. 在FreeBSD或OpenBSD上安裝Maven
2.4. 驗(yàn)證Maven安裝
2.5. Maven安裝細(xì)節(jié)
2.5.1. 用戶相關(guān)配置和倉(cāng)庫(kù)
2.5.2. 升級(jí)Maven
2.6. 獲得Maven幫助
2.7. 使用Maven Help插件
2.7.1. 描述一個(gè)Maven插件
2.8. 關(guān)于Apache軟件許可證
I. Maven實(shí)戰(zhàn)
3. 一個(gè)簡(jiǎn)單的Maven項(xiàng)目
3.1. 簡(jiǎn)介
3.1.1. 下載本章的例子
3.2. 創(chuàng)建一個(gè)簡(jiǎn)單的項(xiàng)目
3.3. 構(gòu)建一個(gè)簡(jiǎn)單的項(xiàng)目
3.4. 簡(jiǎn)單的項(xiàng)目對(duì)象模型 (Project Object Model)
3.5. 核心概念
3.5.1. Maven插件和目標(biāo) (Plugins and Goals)
3.5.2. Maven生命周期 (Lifecycle)
3.5.3. Maven坐標(biāo) (Coordinates)
3.5.4. Maven倉(cāng)庫(kù)(Repositories)
3.5.5. Maven依賴管理 (Dependency Management)
3.5.6. 站點(diǎn)生成和報(bào)告 (Site Generation and Reporting)
3.6. 小結(jié)
4. 定制一個(gè)Maven項(xiàng)目
4.1. 介紹
4.1.1. 下載本章樣例
4.2. 定義Simple Weather項(xiàng)目
4.2.1. Yahoo! Weather RSS
4.3. 創(chuàng)建Simple Weather項(xiàng)目
4.4. 定制項(xiàng)目信息
4.5. 添加新的依賴
4.6. Simple Weather源碼
4.7. 添加資源
4.8. 運(yùn)行Simple Weather項(xiàng)目
4.8.1. Maven Exec 插件
4.8.2. 瀏覽你的項(xiàng)目依賴
4.9. 編寫單元測(cè)試
4.10. 添加測(cè)試范圍依賴
4.11. 添加單元測(cè)試資源
4.12. 執(zhí)行單元測(cè)試
4.12.1. 忽略測(cè)試失敗
4.12.2. 跳過單元測(cè)試
4.13. 構(gòu)建一個(gè)打包好的命令行應(yīng)用程序
5. 一個(gè)簡(jiǎn)單的Web應(yīng)用
5.1. 介紹
5.1.1. 下載本章樣例
5.2. 定義這個(gè)簡(jiǎn)單的Web應(yīng)用
5.3. 創(chuàng)建這個(gè)簡(jiǎn)單的Web應(yīng)用
5.4. 配置Jetty插件
5.5. 添加一個(gè)簡(jiǎn)單的Servlet
5.6. 添加J2EE依賴
5.7. 小結(jié)
6. 一個(gè)多模塊項(xiàng)目
6.1. 簡(jiǎn)介
6.1.1. 下載本章樣例
6.2. simple-parent 項(xiàng)目
6.3. simple-weather 模塊
6.4. simple-webapp 模塊
6.5. 構(gòu)建這個(gè)多模塊項(xiàng)目
6.6. 運(yùn)行Web應(yīng)用
7. 多模塊企業(yè)級(jí)項(xiàng)目
7.1. 簡(jiǎn)介
7.1.1. 下載本章樣例
7.1.2. 多模塊企業(yè)級(jí)項(xiàng)目
7.1.3. 本例中所用的技術(shù)
7.2. simple-parent項(xiàng)目
7.3. simple-model模塊
7.4. simple-weather模塊
7.5. simple-persist模塊
7.6. simple-webapp模塊
7.7. 運(yùn)行這個(gè)Web應(yīng)用
7.8. simple-command模塊
7.9. 運(yùn)行這個(gè)命令行程序
7.10. 小結(jié)
7.10.1. 編寫接口項(xiàng)目程序
8. 優(yōu)化和重構(gòu)POM
8.1. 簡(jiǎn)介
8.2. POM清理
8.3. 優(yōu)化依賴
8.4. 優(yōu)化插件
8.5. 使用Maven Dependency插件進(jìn)行優(yōu)化
8.6. 最終的POM
8.7. 小結(jié)
II. Maven Reference
9. 項(xiàng)目對(duì)象模型
9.1. 簡(jiǎn)介
9.2. POM
9.2.1. 超級(jí)POM
9.2.2. 最簡(jiǎn)單的POM
9.2.3. 有效POM
9.2.4. 真正的POM
9.3. POM語法
9.3.1. 項(xiàng)目版本
9.3.1.1. 版本構(gòu)建號(hào)
9.3.1.2. SNAPSHOT版本
9.3.1.3. LATEST 和 RELEASE 版本
9.3.2. 屬性引用
9.4. 項(xiàng)目依賴
9.4.1. 依賴范圍
9.4.2. 可選依賴
9.4.3. 依賴版本界限
9.4.4. 傳遞性依賴
9.4.4.1. 傳遞性依賴和范圍
9.4.5. 沖突解決
9.4.6. 依賴管理
9.5. 項(xiàng)目關(guān)系
9.5.1. 坐標(biāo)詳解
9.5.2. 多模塊項(xiàng)目
9.5.3. 項(xiàng)目繼承
9.6. POM最佳實(shí)踐
9.6.1. 依賴歸類
9.6.2. 多模塊 vs. 繼承
9.6.2.1. 簡(jiǎn)單項(xiàng)目
9.6.2.2. 多模塊企業(yè)級(jí)項(xiàng)目
9.6.2.3. 原型父項(xiàng)目
10. 構(gòu)建生命周期
10.1. 簡(jiǎn)介
10.1.1. 清理生命周期 (clean)
10.1.2. 默認(rèn)生命周期 (default)
10.1.3. 站點(diǎn)生命周期 (site)
10.2. 打包相關(guān)生命周期
10.2.1. JAR
10.2.2. POM
10.2.3. Maven Plugin
10.2.4. EJB
10.2.5. WAR
10.2.6. EAR
10.2.7. 其它打包類型
10.3. 通用生命周期目標(biāo)
10.3.1. Process Resources
10.3.2. Compile
10.3.3. Process Test Resources
10.3.4. Test Compile
10.3.5. Test
10.3.6. Install
10.3.7. Deploy
11. 構(gòu)建Profile
11.1. Profile是用來做什么的?
11.1.1. 什么是構(gòu)建可移植性
11.1.1.1. 不可移植構(gòu)建
11.1.1.2. 環(huán)境可移植性
11.1.1.3. 組織(內(nèi)部)可移植性
11.1.1.4. 廣泛(全局)可移植性
11.1.2. 選擇一個(gè)適當(dāng)級(jí)別的可移植性
11.2. 通過Maven Profiles實(shí)現(xiàn)可移植性
11.2.1. 覆蓋一個(gè)項(xiàng)目對(duì)象模型
11.3. 激活Profile
11.3.1. 激活配置
11.3.2. 通過屬性缺失激活
11.4. 外部Profile
11.5. Settings Profile
11.5.1. 全局Settings Profile
11.6. 列出活動(dòng)的Profile
11.7. 提示和技巧
11.7.1. 常見的環(huán)境
11.7.2. 安全保護(hù)
11.7.3. 平臺(tái)分類器
11.8. 小結(jié)
12. Maven Assemblies
12.1. Introduction
12.2. Assembly Basics
12.2.1. Predefined Assembly Descriptors
12.2.2. Building an Assembly
12.2.3. Assemblies as Dependencies
12.2.4. Assembling Assemblies via Assembly Dependencies
12.3. Overview of the Assembly Descriptor
12.4. The Assembly Descriptor
12.4.1. Property References in Assembly Descriptors
12.4.2. Required Assembly Information
12.5. Controlling the Contents of an Assembly
12.5.1. Files Section
12.5.2. FileSets Section
12.5.3. Default Exclusion Patterns for fileSets
12.5.4. dependencySets Section
12.5.4.1. Customizing Dependency Output Location
12.5.4.2. Interpolation of Properties in Dependency Output Location
12.5.4.3. Including and Excluding Dependencies by Scope
12.5.4.4. Fine Tuning: Dependency Includes and Excludes
12.5.4.5. Transitive Dependencies, Project Attachments, and Project Artifacts
12.5.4.6. Advanced Unpacking Options
12.5.4.7. Summarizing Dependency Sets
12.5.5. moduleSets Sections
12.5.5.1. Module Selection
12.5.5.2. Sources Section
12.5.5.3. Interpolation of outputDirectoryMapping in moduleSets
12.5.5.4. Binaries section
12.5.5.5. moduleSets, Parent POMs and the binaries Section
12.5.6. Repositories Section
12.5.7. Managing the Assembly’s Root Directory
12.5.8. componentDescriptors and containerDescriptorHandlers
12.6. Best Practices
12.6.1. Standard, Reusable Assembly Descriptors
12.6.2. Distribution (Aggregating) Assemblies
12.7. Summary
13. Properties and Resource Filtering
13.1. Introduction
13.2. Maven Properties
13.2.1. Maven Project Properties
13.2.2. Maven Settings Properties
13.2.3. Environment Variable Properties
13.2.4. Java System Properties
13.2.5. User-defined Properties
13.3. Resource Filtering
14. Maven和Eclipse: m2eclipse
14.1. 簡(jiǎn)介
14.2. m2eclipse
14.3. 安裝 m2eclipse 插件
14.3.1. 安裝前提條件
14.3.1.1. 安裝 Subclipse
14.3.1.2. 安裝 Mylyn
14.3.1.3. 安裝 AspectJ Tools Platform (AJDT)
14.3.1.4. 安裝 Web Tools Platform (WTP)
14.3.2. 安裝 m2eclipse
14.4. 開啟 Maven 控制臺(tái)
14.5. 創(chuàng)建一個(gè) Maven 項(xiàng)目
14.5.1. 從 SCM 簽出一個(gè) Maven 項(xiàng)目
14.5.2. 用Maven Archetype創(chuàng)建一個(gè)Maven項(xiàng)目
14.5.3. 創(chuàng)建一個(gè) Maven 模塊
14.6. 創(chuàng)建一個(gè)Maven POM文件
14.7. 導(dǎo)入Maven項(xiàng)目
14.7.1. 導(dǎo)入一個(gè)Maven項(xiàng)目
14.7.2. 具體化一個(gè)Maven項(xiàng)目
14.8. 運(yùn)行Maven構(gòu)建
14.9. 使用Maven進(jìn)行工作
14.9.1. 添加及更新依賴或插件
14.9.2. 創(chuàng)建一個(gè)Maven模塊
14.9.3. 下載源碼
14.9.4. 打開項(xiàng)目頁(yè)面
14.9.5. 解析依賴
14.10. 使用Maven倉(cāng)庫(kù)進(jìn)行工作
14.10.1. 搜索 Maven 構(gòu)件和 Java 類
14.10.2. 為Maven倉(cāng)庫(kù)編制索引
14.11. 使用基于表單的POM編輯器
14.12. 在m2eclipse中分析項(xiàng)目依賴
14.13. Maven 選項(xiàng)
14.14. 小結(jié)
15. Site Generation
15.1. Introduction
15.2. Building a Project Site with Maven
15.3. Customizing the Site Descriptor
15.3.1. Customizing the Header Graphics
15.3.2. Customizing the Navigation Menu
15.4. Site Directory Structure
15.5. Writing Project Documentation
15.5.1. APT Example
15.5.2. FML Example
15.6. Deploying Your Project Website
15.6.1. Configuring Server Authentication
15.6.2. Configuring File and Directory Modes
15.7. Customizing Site Appearance
15.7.1. Customizing the Site CSS
15.7.2. Create a Custom Site Template
15.7.3. Reusable Website Skins
15.7.4. Creating a Custom Theme CSS
15.7.5. Customizing Site Templates in a Skin
15.8. Tips and Tricks
15.8.1. Inject XHTML into HEAD
15.8.2. Add Links under Your Site Logo
15.8.3. Add Breadcrumbs to Your Site
15.8.4. Add the Project Version
15.8.5. Modify the Publication Date Format and Location
15.8.6. Using Doxia Macros
16. 倉(cāng)庫(kù)管理器
16.1. 簡(jiǎn)介
16.1.1. Nexus歷史
16.2. 安裝Nexus
16.2.1. 從Sonatype下載Nexus
16.2.2. 安裝Nexus
16.2.3. 運(yùn)行Nexus
16.2.4. 安裝后檢查單
16.2.5. 為Redhat/Fedora/CentOS設(shè)置啟動(dòng)腳本
16.2.6. 升級(jí)Nexus版本
16.3. 使用Nexus
16.3.1. 瀏覽倉(cāng)庫(kù)
16.3.2. 瀏覽組
16.3.3. 搜索構(gòu)件
16.3.4. 瀏覽系統(tǒng)RSS源
16.3.5. 瀏覽日志文件和配置
16.3.6. 更改你的密碼
16.4. 配置Maven使用Nexus
16.4.1. 使用Nexus中央代理倉(cāng)庫(kù)
16.4.2. 使用Nexus作為快照倉(cāng)庫(kù)
16.4.3. 為缺少的依賴添加倉(cāng)庫(kù)
16.4.4. 添加一個(gè)新的倉(cāng)庫(kù)
16.4.5. 添加一個(gè)倉(cāng)庫(kù)至一個(gè)組
16.5. 配置Nexus
16.5.. 定制服務(wù)器配置
16.5.2. 管理倉(cāng)庫(kù)
16.5.3. 管理組
16.5.4. 管理路由
16.5.5. 網(wǎng)絡(luò)配置
16.6. 維護(hù)倉(cāng)庫(kù)
16.7. 部署構(gòu)件至Nexus
16.7.1. 部署發(fā)布版
16.7.2. 部署快照版
16.7.3. 部署第三方構(gòu)件
17. Writing Plugins
17.1. Introduction
17.2. Programming Maven
17.2.1. What is Inversion of Control?
17.2.2. Introduction to Plexus
17.2.3. Why Plexus?
17.2.4. What is a Plugin?
17.3. Plugin Descriptor
17.3.1. Top-level Plugin Descriptor Elements
17.3.2. Mojo Configuration
17.3.3. Plugin Dependencies
17.4. Writing a Custom Plugin
17.4.1. Creating a Plugin Project
17.4.2. A Simple Java Mojo
17.4.3. Configuring a Plugin Prefix
17.4.4. Logging from a Plugin
17.4.5. Mojo Class Annotations
17.4.6. When a Mojo Fails
17.5. Mojo Parameters
17.5.1. Supplying Values for Mojo Parameters
17.5.2. Multi-valued Mojo Parameters
17.5.3. Depending on Plexus Components
17.5.4. Mojo Parameter Annotations
17.6. Plugins and the Maven Lifecycle
17.6.1. Executing a Parallel Lifecycle
17.6.2. Creating a Custom Lifecycle
17.6.3. Overriding the Default Lifecycle
18. Writing Plugins in Alternative Languages
18.1. Writing Plugins in Ant
18.2. Creating an Ant Plugin
18.3. Writing Plugins in JRuby
18.3.1. Creating a JRuby Plugin
18.3.2. Ruby Mojo Implementations
18.3.3. Logging from a Ruby Mojo
18.3.4. Raising a MojoError
18.3.5. Referencing Plexus Components from JRuby
18.4. Writing Plugins in Groovy
18.4.1. Creating a Groovy Plugin
A. Appendix: Settings Details
A.1. Quick Overview
A.2. Settings Details
A.2.1. Simple Values
A.2.2. Servers
A.2.3. Mirrors
A.2.4. Proxies
A.2.5. Profiles
A.2.6. Activation
A.2.7. Properties
A.2.8. Repositories
A.2.9. Plugin Repositories
A.2.10. Active Profiles
B. Appendix: Sun Specification Alternatives
目前原網(wǎng)站更新的中文章節(jié)都已經(jīng)收錄
缺失章節(jié):12,13,15,17,18還有附錄,等待補(bǔ)全中,本文檔僅供個(gè)人參考學(xué)習(xí),請(qǐng)勿非法傳播,版權(quán)歸原網(wǎng)站所有: