Maven Crash Course

Video description

The Maven Crash Course is designed to cut academic theory to just the key concepts and focus on basic Maven tasks to become productive quickly.We’ll begin by introducing Maven and walking through its installation, after which we’ll begin working on our first project. We’ll take a look at dependencies, repositories and plugins and we’ll learn how to improve our project by using JUnit for unit testing. Finally, we will start to use Maven within Eclipse, along with the M2Eclipse plugin. The quizzes at the end of each section reinforce key concepts by testing your knowledge acquired throughout the course.With this course, you’ll be comfortable in using Maven on both a Windows machine as well as a Mac and you will be able to build your Java project more efficiently while managing dependencies in Maven.

What You Will Learn

  • Understand key Maven concepts~Install and configure Maven on Mac and Windows platforms
  • Build Java projects using Maven
  • Find and manage dependencies in Maven
  • Use Maven with Eclipse
  • Integrate Git source code control with Maven projects


Java developers who have no knowledge of Maven and would like to use it in building their projects will benefit from this course. DevOps engineers who want an overview of Maven will also find this course useful.

About The Author

Jason Taylor: With nearly 20 years of programming and software development experience, I started out teaching myself programming while in High School. I put myself through college working for a local Internet Service Provider as a programmer. Before finishing college, I developed and sold an award winning website to a Dot-Com start-up. After college, I have worked at several companies ranging from start-ups to large enterprises focusing on Java and client-side technologies (HTML/CSS/JavaScript). Throughout my career, I have opportunity to learn many software development best practices and exposure to several version control systems

Table of contents

  1. Chapter 1 : Introduction
    1. Course Introduction, Goals, Objectives, and Approach
    2. What is Maven?
    3. Why Start with the Command Line?
  2. Chapter 2 : Core Concepts
    1. Core Concepts Overview and Convention over Configuration
    2. Dependency Resolution and the Maven Artifact Repository
    3. Life Cycles, Phases and Goals, and Plugins
  3. Chapter 3 : Installation
    1. The Installation Approach
    2. Maven Installation on Windows
    3. Maven Installation on Mac OS X
  4. Chapter 4 : Setup and Getting Help
    1. Getting Help with Maven
    2. Downloading Project files from GitHub
  5. Chapter 5 : Getting Started - The Minimal Maven Project
    1. Minimal Project Setup and First Run
    2. Adding the Java Source to the Project
    3. Goals, Phases, and Life Cycles in Action
    4. Minimal Project Cleanup
  6. Chapter 6 : Maven Basics - A Simple Maven Project
    1. Downloading Helper Script
    2. Standard Directory Template
    3. Adding the Java Source
    4. Project Metadata and Improving the Project POM
    5. Build Settings - Changing the Final Name
    6. Local Maven Repository
    7. Basic Maven Cleanup
  7. Chapter 7 : Beyond the Basics - Dependencies and Plugins
    1. Project Words Setup
    2. Maven Dependencies
    3. Updating Git
    4. Reviewing the Project Target Directory
    5. Local Maven Repository
    6. Dependency Graph (Dependency Plugin)
    7. Updating the Project to Target Java 8 (Compiler Plugin)
    8. Beyond the Basic Clean Up
  8. Chapter 8 : Unit Testing
    1. Adding the Unit Test Source for the Java Project
    2. Unit Test Dependency, Test Scope, and Running Tests
    3. Failing Unit Tests
    4. Skipping Unit Tests via Command Line
    5. Skipping Unit Tests via Configuration (POM)
    6. Reporting Unit Test Results
    7. Unit Testing Section Cleanup
  9. Chapter 9 : Installing Eclipse and Configuration on Windows
    1. Install Eclipse on Windows
    2. Maven Configuration in Eclipse (on Windows)
  10. Chapter 10 : Installing Eclipse and Configuration on Mac OS X
    1. Tweak System Security (Install Anywhere)
    2. Install Eclipse on Mac OS X
    3. Maven Configuration for Eclipse (Mac OS X)
  11. Chapter 11 : Using Maven with Eclipse
    1. Create a New Maven Project in Eclipse
    2. Adding a Java Source and Building within Eclipse
    3. Importing an Existing Maven Project
    4. Project Object Model within Eclipse
  12. Chapter 12 : Bonus: Miscellaneous Maven Tricks
    1. Jump-Start Your Project Using Maven Archetypes

Product information

  • Title: Maven Crash Course
  • Author(s): Jason Taylor
  • Release date: May 2017
  • Publisher(s): Packt Publishing
  • ISBN: 9781787124912