Objectives
In this training, attendees will learn how to:
- Download and install Maven
- Build a project
- Work with Maven's project directory structure, plugins, repositories, and more
- Understand the Project Object Model (POM)
- Build a complete web application using Maven
- Build and activate profiles
- Use Maven from Eclipse via the m2eclipse plugin
Prerequisites
All attendees must have core Java® and Java web programming experience.
Audience
This course is targeted to people who will use Maven to build projects. They will typically work on projects that have already been created (i.e. existing project checked out from an SCM system), or create new projects based on a Maven archetype. They may be expected to add dependencies to an existing project, or configure the build process by editing the project’s POM.
Duration
1 Day
Outline for Apache Maven Quickstart Training
Chapter 1. Introduction to Apache Maven
- Build Tools for Java
- History of Build Tools
- Traditional Scripting
- 'make'
- Problems with Make
- Manual Build with JavaC
- ANT
- Pros and Cons of Ant
- Apache Maven
- Goals of Maven
- What is Apache Maven?
- Why Use Apache Maven?
- The Maven EcoSystem
- Consistent Easy-to-Understand Project Layout
- Convention Over Configuration
- Maven is Different
- Maven Projects have a Standardized Build
- Effect of Convention Over Configuration
- Importance of Plugins
- A Key Point on Maven!
- Summary – Key Features of Maven
Chapter 2. Installing and Running Apache Maven
- Downloading Maven
- Installing Maven
- Run From Command Line
- Running Inside an IDE
- Settings.xml
- Local Repository
- Summary
Chapter 3. Getting Started With Maven
- Terminology and Basic Concepts
- Artifacts
- Lifecycle
- Default Lifecycle
- Plugins
- Running Maven - the Story So Far
- Running Maven from an IDE
- Common Goals
- pom.xml
- Example
- Artifact Coordinates
- Standard Layout for Sources
- Summary
Chapter 4. A Web Application in Maven
- A More Complex Project
- Putting it Together With Maven
- Packaging the Target Artifact
- The Source Tree
- Dependencies
- Transitive Dependencies
- Dependency Scope
- Working With Servers
- Declaring and Configuring Plugins
- Running the Plugin
- Binding a Plugin Goal to the Lifecycle
- Archetypes
- Summary
Chapter 5. Commonly Used Plugins
- Maven Plugins
- Declaring and Configuring Plugins
- Running the Plugin
- Binding a Plugin Goal to the Lifecycle
- Maven Surefire Test Plugin
- Failsafe Plugin
- Site Plugin
- JavaDoc Plugin
- PMD Plugin
- Code Coverage – Cobertura
- Summary
Chapter 6. Multi-Module Builds
- Introduction
- The Reactor
- Reactor Sorting
- Multi-Module Build by Example
- Summary
01/15/2024 - 01/15/2024
10:00 AM - 06:00 PM
Eastern Standard Time
USD $680.00
02/19/2024 - 02/19/2024
10:00 AM - 06:00 PM
Eastern Standard Time
USD $680.00
04/01/2024 - 04/01/2024
10:00 AM - 06:00 PM
Eastern Standard Time
USD $680.00