WA2184

Maven Training: Introduction to Apache Maven Training

This Introduction to Apache Maven course starts by helping participants understand the tremendous benefits and return on investment from Apache Maven. After completing this course participants will understand how to download, install, set-up and confidently use core Maven features.  The most popular version of the course is taught with Eclipse but it can be delivered with any Integrated Development Environment (IDE).
Course Details

Duration

2 days

Prerequisites

All attendees must have core Java® and Java web programming experience.

Target Audience

People who will use Maven to build projects and manage product lifecycles using Maven. 

Skills Gained

  • Download and install Maven
  • Build a project
  • Work with Maven's 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
Course Outline
  • 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!
  • Installing and Running Apache Maven
    • Downloading Maven
    • Installing Maven
    • Run From Command Line
    • Running Inside an IDE
    • Settings.xml
    • Local Repository
  • 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
  • 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
  • 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
  • Multi-Module Builds
    • Introduction
    • The Reactor
    • Reactor Sorting
    • Multi-Module Build by Example
  • POM Projects
    • Project Object Model (POM)
    • The overall POM structure
    • Storing POM
  • Writing Plugins (Maven)
    • What is Maven Plugin
    • Example of Using a Plugin
    • Create a Custom Plugin
    • Create a Custom Plugin (cont.)
    • Plugin Management
  • Creating Archetypes
    • Introduction to Maven Archetypes
    • Introduction to Maven Archetypes (cont.)
    • Using Interactive Mode to generate Goal
    • Common Maven Archetypes
  • Repository Management
    • Maven's Approach to Artifacts
    • Publishing Artifacts
    • Summary of Maven's Artifact Handling
    • Repository
    • Repository Manager
    • Proxy Remote Repositories
    • Types of Artifacts
    • Release Artifacts
    • Snapshot Artifacts
    • Reasons to Use a Repository Manager
    • Repository Coordinates
    • Addressing Resources in a Repository
  • Release Management
    • What is release Management?
    • Release Management with Nexus
    • Release Management with Maven
  • Lab Exercises
    • Lab 1. Install Maven
    • Lab 2. Create a Maven Project
    • Lab 3. Create a Web Application from an Archetype
    • Lab 4. Add Web Site, Static Analysis, and Code Coverage
    • Lab 5. A Multi-Module Project
    • Lab 6. Create a Standard Set of Dependencies
    • Lab 7. Write a Simple Maven Plugin
    • Lab 8. Create an Archetype
    • Lab 9. Create a Corporate Repository
    • Lab 10. Deploy to the Corporate Repository
Upcoming Course Dates
USD $1,250
Online Virtual Class
Scheduled
Date: Oct 28 - 29, 2024
Time: 10 AM - 6 PM ET