Posted on 2009-03-16 10:01
itVincent 閱讀(1024)
評論(0) 編輯 收藏
Maven權威指南中文版.rar
maven教程中文版
Maven權威指南是一本關于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. 約定優于配置(Convention Over Configuration)
1.3. 一個一般的接口
1.4. 基于Maven插件的全局性重用
1.5. 一個“項目”的概念模型
1.6. Maven是Ant的另一種選擇么?
1.7. 比較Maven和Ant
1.8. 總結
2. 安裝和運行Maven
2.1. 驗證你的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. 驗證Maven安裝
2.5. Maven安裝細節
2.5.1. 用戶相關配置和倉庫
2.5.2. 升級Maven
2.6. 獲得Maven幫助
2.7. 使用Maven Help插件
2.7.1. 描述一個Maven插件
2.8. 關于Apache軟件許可證
I. Maven實戰
3. 一個簡單的Maven項目
3.1. 簡介
3.1.1. 下載本章的例子
3.2. 創建一個簡單的項目
3.3. 構建一個簡單的項目
3.4. 簡單的項目對象模型 (Project Object Model)
3.5. 核心概念
3.5.1. Maven插件和目標 (Plugins and Goals)
3.5.2. Maven生命周期 (Lifecycle)
3.5.3. Maven坐標 (Coordinates)
3.5.4. Maven倉庫(Repositories)
3.5.5. Maven依賴管理 (Dependency Management)
3.5.6. 站點生成和報告 (Site Generation and Reporting)
3.6. 小結
4. 定制一個Maven項目
4.1. 介紹
4.1.1. 下載本章樣例
4.2. 定義Simple Weather項目
4.2.1. Yahoo! Weather RSS
4.3. 創建Simple Weather項目
4.4. 定制項目信息
4.5. 添加新的依賴
4.6. Simple Weather源碼
4.7. 添加資源
4.8. 運行Simple Weather項目
4.8.1. Maven Exec 插件
4.8.2. 瀏覽你的項目依賴
4.9. 編寫單元測試
4.10. 添加測試范圍依賴
4.11. 添加單元測試資源
4.12. 執行單元測試
4.12.1. 忽略測試失敗
4.12.2. 跳過單元測試
4.13. 構建一個打包好的命令行應用程序
5. 一個簡單的Web應用
5.1. 介紹
5.1.1. 下載本章樣例
5.2. 定義這個簡單的Web應用
5.3. 創建這個簡單的Web應用
5.4. 配置Jetty插件
5.5. 添加一個簡單的Servlet
5.6. 添加J2EE依賴
5.7. 小結
6. 一個多模塊項目
6.1. 簡介
6.1.1. 下載本章樣例
6.2. simple-parent 項目
6.3. simple-weather 模塊
6.4. simple-webapp 模塊
6.5. 構建這個多模塊項目
6.6. 運行Web應用
7. 多模塊企業級項目
7.1. 簡介
7.1.1. 下載本章樣例
7.1.2. 多模塊企業級項目
7.1.3. 本例中所用的技術
7.2. simple-parent項目
7.3. simple-model模塊
7.4. simple-weather模塊
7.5. simple-persist模塊
7.6. simple-webapp模塊
7.7. 運行這個Web應用
7.8. simple-command模塊
7.9. 運行這個命令行程序
7.10. 小結
7.10.1. 編寫接口項目程序
8. 優化和重構POM
8.1. 簡介
8.2. POM清理
8.3. 優化依賴
8.4. 優化插件
8.5. 使用Maven Dependency插件進行優化
8.6. 最終的POM
8.7. 小結
II. Maven Reference
9. 項目對象模型
9.1. 簡介
9.2. POM
9.2.1. 超級POM
9.2.2. 最簡單的POM
9.2.3. 有效POM
9.2.4. 真正的POM
9.3. POM語法
9.3.1. 項目版本
9.3.1.1. 版本構建號
9.3.1.2. SNAPSHOT版本
9.3.1.3. LATEST 和 RELEASE 版本
9.3.2. 屬性引用
9.4. 項目依賴
9.4.1. 依賴范圍
9.4.2. 可選依賴
9.4.3. 依賴版本界限
9.4.4. 傳遞性依賴
9.4.4.1. 傳遞性依賴和范圍
9.4.5. 沖突解決
9.4.6. 依賴管理
9.5. 項目關系
9.5.1. 坐標詳解
9.5.2. 多模塊項目
9.5.3. 項目繼承
9.6. POM最佳實踐
9.6.1. 依賴歸類
9.6.2. 多模塊 vs. 繼承
9.6.2.1. 簡單項目
9.6.2.2. 多模塊企業級項目
9.6.2.3. 原型父項目
10. 構建生命周期
10.1. 簡介
10.1.1. 清理生命周期 (clean)
10.1.2. 默認生命周期 (default)
10.1.3. 站點生命周期 (site)
10.2. 打包相關生命周期
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. 通用生命周期目標
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. 構建Profile
11.1. Profile是用來做什么的?
11.1.1. 什么是構建可移植性
11.1.1.1. 不可移植構建
11.1.1.2. 環境可移植性
11.1.1.3. 組織(內部)可移植性
11.1.1.4. 廣泛(全局)可移植性
11.1.2. 選擇一個適當級別的可移植性
11.2. 通過Maven Profiles實現可移植性
11.2.1. 覆蓋一個項目對象模型
11.3. 激活Profile
11.3.1. 激活配置
11.3.2. 通過屬性缺失激活
11.4. 外部Profile
11.5. Settings Profile
11.5.1. 全局Settings Profile
11.6. 列出活動的Profile
11.7. 提示和技巧
11.7.1. 常見的環境
11.7.2. 安全保護
11.7.3. 平臺分類器
11.8. 小結
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. 簡介
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 控制臺
14.5. 創建一個 Maven 項目
14.5.1. 從 SCM 簽出一個 Maven 項目
14.5.2. 用Maven Archetype創建一個Maven項目
14.5.3. 創建一個 Maven 模塊
14.6. 創建一個Maven POM文件
14.7. 導入Maven項目
14.7.1. 導入一個Maven項目
14.7.2. 具體化一個Maven項目
14.8. 運行Maven構建
14.9. 使用Maven進行工作
14.9.1. 添加及更新依賴或插件
14.9.2. 創建一個Maven模塊
14.9.3. 下載源碼
14.9.4. 打開項目頁面
14.9.5. 解析依賴
14.10. 使用Maven倉庫進行工作
14.10.1. 搜索 Maven 構件和 Java 類
14.10.2. 為Maven倉庫編制索引
14.11. 使用基于表單的POM編輯器
14.12. 在m2eclipse中分析項目依賴
14.13. Maven 選項
14.14. 小結
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. 倉庫管理器
16.1. 簡介
16.1.1. Nexus歷史
16.2. 安裝Nexus
16.2.1. 從Sonatype下載Nexus
16.2.2. 安裝Nexus
16.2.3. 運行Nexus
16.2.4. 安裝后檢查單
16.2.5. 為Redhat/Fedora/CentOS設置啟動腳本
16.2.6. 升級Nexus版本
16.3. 使用Nexus
16.3.1. 瀏覽倉庫
16.3.2. 瀏覽組
16.3.3. 搜索構件
16.3.4. 瀏覽系統RSS源
16.3.5. 瀏覽日志文件和配置
16.3.6. 更改你的密碼
16.4. 配置Maven使用Nexus
16.4.1. 使用Nexus中央代理倉庫
16.4.2. 使用Nexus作為快照倉庫
16.4.3. 為缺少的依賴添加倉庫
16.4.4. 添加一個新的倉庫
16.4.5. 添加一個倉庫至一個組
16.5. 配置Nexus
16.5.. 定制服務器配置
16.5.2. 管理倉庫
16.5.3. 管理組
16.5.4. 管理路由
16.5.5. 網絡配置
16.6. 維護倉庫
16.7. 部署構件至Nexus
16.7.1. 部署發布版
16.7.2. 部署快照版
16.7.3. 部署第三方構件
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
目前原網站更新的中文章節都已經收錄
缺失章節:12,13,15,17,18還有附錄,等待補全中,本文檔僅供個人參考學習,請勿非法傳播,版權歸原網站所有: