Introduction to Apache Maven


Course Number: MVN-100WA
Duration: 2 days (13 hours)
Format: Live, hands-on

Apache Maven Training Overview

Accelebrate's Introduction to Apache Maven training class teaches attendees how to automate the build of Java projects using Apache Maven. Note: The most popular version of the course is taught with Eclipse but it can be delivered with any Integrated Development Environment (IDE).

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • 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
  • Work with popular Maven plugins
  • Use Maven from Eclipse via the m2eclipse plugin

Prerequisites

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

Outline

Expand All | Collapse All

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!
  • Key Features of 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
  • 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 Maven Plugins 
  • What is Maven Plugin
  • Example of Using a Plugin
  • Create a Custom Plugin
  • Plugin Management
Creating Archetypes
  • Introduction to Maven Archetypes
  • 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
Conclusion

Training Materials

All attendees receive comprehensive courseware.

Software Requirements

  • JDK 8 or later
  • Any operating system that supports Java 1.8 or later
  • The Java tool the students are likely to use after the class (Eclipse is recommended, but other tools are also supported)
  • The Maven version of your choice
  • Other free software - please contact us if you have purchased this class


Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan