Book description
For too long, developers have worked on disorganized application projects, where every part seemed to have its own build system, and no common repository existed for information about the state of the project. Now there's help. The long-awaited official documentation to Maven is here.
Written by Maven creator Jason Van Zyl and his team at Sonatype, Maven: The Definitive Guide clearly explains how this tool can bring order to your software development projects. Maven is largely replacing Ant as the build tool of choice for large open source Java projects because, unlike Ant, Maven is also a project management tool that can run reports, generate a project website, and facilitate communication among members of a working team.
To use Maven, everything you need to know is in this guide. The first part demonstrates the tool's capabilities through the development, from ideation to deployment, of several sample applications -- a simple software development project, a simple web application, a multi-module project, and a multi-module enterprise project.
The second part offers a complete reference guide that includes:
- The POM and Project Relationships
- The Build Lifecycle
- Plugins
- Project website generation
- Advanced site generation
- Reporting
- Properties
- Build Profiles
- The Maven Repository
- Team Collaboration
- Writing Plugins
- IDEs such as Eclipse, IntelliJ, ands NetBeans
- Using and creating assemblies
- Developing with Maven Archetypes
Several sources for Maven have appeared online for some time, but nothing served as an introduction and comprehensive reference guide to this tool -- until now. Maven: The Definitive Guide is the ideal book to help you manage development projects for software, web applications, and enterprise applications. And it comes straight from the source.
Publisher resources
Table of contents
-
Maven: The Definitive Guide
- SPECIAL OFFER: Upgrade this ebook with OâReilly
- A Note Regarding Supplemental Files
- Preface
- I. Introduction
-
II. Maven by Example
- 3. A Simple Maven Project
-
4. Customizing a Maven Project
- Introduction
- Defining the Simple Weather Project
- Creating the Simple Weather Project
- Customize Project Information
- Add New Dependencies
- Simple Weather Source Code
- Add Resources
- Running the Simple Weather Program
- Writing Unit Tests
- Adding Test-Scoped Dependencies
- Adding Unit Test Resources
- Executing Unit Tests
- Building a Packaged Command-Line Application
- 5. A Simple Web Application
- 6. A Multimodule Project
- 7. Multimodule Enterprise Project
-
III. Maven Reference
- 8. Optimizing and Refactoring POMs
- 9. The Project Object Model
- 10. The Build Lifecycle
- 11. Build Profiles
-
12. Maven Assemblies
- Introduction
- Assembly Basics
- Overview of the Assembly Descriptor
- The Assembly Descriptor
-
Controlling the Contents of an Assembly
- Files Section
- fileSets Section
- Default Exclusion Patterns for fileSets
-
dependencySets Section
- Customizing dependency output location
- Interpolation of properties in dependency output location
- Including and excluding dependencies by scope
- Fine-tuning: dependency includes and excludes
- Transitive dependencies, project attachments, and project artifacts
- Advanced unpacking options
- Summarizing dependency sets
- moduleSets Sections
- Repositories Section
- Managing the Assemblyâs Root Directory
- componentDescriptors and containerDescriptorHandlers
- Best Practices
- Summary
- 13. Properties and Resource Filtering
-
14. Maven and Eclipse: m2eclipse
- Introduction
- m2eclipse
- Installing the m2eclipse Plugin
- Enabling the Maven Console
- Creating a Maven Project
- Create a Maven POM File
- Importing Maven Projects
- Running Maven Builds
- Working with Maven Projects
- Working with Maven Repositories
- Using the Form-Based POM Editor
- Analyzing Project Dependencies in m2eclipse
- Maven Preferences
- Summary
- 15. Site Generation
- 16. Repository Manager
- 17. Writing Plugins
- 18. Writing Plugins in Alternative Languages
- IV. Appendixes
- Index
- About the Author
- Colophon
- SPECIAL OFFER: Upgrade this ebook with OâReilly
Product information
- Title: Maven: The Definitive Guide
- Author(s):
- Release date: September 2008
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596551780
You might also like
book
Introducing Maven: A Build Tool for Today's Java Developers
Gain an understanding of Maven’s dependency management and use it to organize basic and multi-module Maven …
video
Apache Maven: Beginner to Guru
Take your Java application development skills to the next level by mastering Apache Maven concepts About …
book
Apache Maven Cookbook
Over 90 hands-on recipes to successfully build and automate development life cycle tasks following Maven conventions …
book
Spring Boot in Action
A developer-focused guide to writing applications using Spring Boot. You'll learn how to bypass the tedious …