O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Maven Crash Course

Video Description

TagLine

About This Video

  • Explore the essentials of Apache Maven to arm yourself with all the ingredients needed to develop a comprehensive build automation system

  • Full of real-world scenarios covering multi-module builds and best practices to make the most out of Maven projects

  • Improve developer productivity by optimizing the build process with best practices in Maven using this concise and precise course

  • In Detail

    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.

    Table of Contents

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