Maven by Example
Maven by Example

Maven by Example

Authors

Tim O'Brien () , John Casey () , Brian Fox () , Jason Van Zyl () , Juven Xu () , Thomas Locher ()

Authors

Dan Fabulich () , Eric Redmond () , Larry Shatzer () , Bruce Snyder ()
Sonatype, Inc. ()

Abstract

Maven: By Example is an introduction to Apache Maven.


1. Copyright
2. Foreword: 0.7
Preface
1. How to Use this Book
2. Your Feedback
3. Font Conventions
4. Maven Writing Conventions
5. Acknowledgements
3. Introducing Apache Maven
3.1. Maven… What is it?
3.2. Convention Over Configuration
3.3. A Common Interface
3.4. Universal Reuse through Maven Plugins
3.5. Conceptual Model of a "Project"
3.6. Is Maven an alternative to XYZ?
3.7. Comparing Maven with Ant
4. Installing Maven
4.1. Verify your Java Installation
4.2. Downloading Maven
4.3. Installing Maven
4.4. Testing a Maven Installation
4.5. Maven Installation Details
4.6. Uninstalling Maven
4.7. Getting Help with Maven
4.8. About the Apache Software License
5. A Simple Maven Project
5.1. Introduction
5.2. Creating a Simple Project
5.3. Building a Simple Project
5.4. Simple Project Object Model
5.5. Core Concepts
5.6. Summary
6. Customizing a Maven Project
6.1. Introduction
6.2. Defining the Simple Weather Project
6.3. Creating the Simple Weather Project
6.4. Customize Project Information
6.5. Add New Dependencies
6.6. Simple Weather Source Code
6.7. Add Resources
6.8. Running the Simple Weather Program
6.9. Writing Unit Tests
6.10. Adding Test-scoped Dependencies
6.11. Adding Unit Test Resources
6.12. Executing Unit Tests
6.13. Building a Packaged Command Line Application
7. A Simple Web Application
7.1. Introduction
7.2. Defining the Simple Web Application
7.3. Creating the Simple Web Project
7.4. Configuring the Jetty Plugin
7.5. Adding a Simple Servlet
7.6. Adding J2EE Dependencies
7.7. Conclusion
8. A Multi-module Project
8.1. Introduction
8.2. The Simple Parent Project
8.3. The Simple Weather Module
8.4. The Simple Web Application Module
8.5. Building the Multimodule Project
8.6. Running the Web Application
9. Multi-module Enterprise Project
9.1. Introduction
9.2. The Simple Parent Project
9.3. The Simple Model Module
9.4. The Simple Weather Module
9.5. The Simple Persist Module
9.6. The Simple Web Application Module
9.7. Running the Web Application
9.8. The Simple Command Module
9.9. Running the Simple Command
9.10. Conclusion
10. Optimizing and Refactoring POMs
10.1. Introduction
10.2. POM Cleanup
10.3. Optimizing Dependencies
10.4. Optimizing Plugins
10.5. Optimizing with the Maven Dependency Plugin
10.6. Final POMs
10.7. Conclusion
11. Creative Commons License
Sonatype Promotion Subscribe via RSS