Let us help you find the training program you are looking for.

If you can't find what you are looking for, contact us, we'll help you find it. We have over 800 training programs to choose from.

Maven Essentials

  • Course Code: Programming & Development - Maven Essentials
  • Course Dates: Contact us to schedule.
  • Course Category: Programming and Development Duration: 3 Days

About this Course  

Maven is the #1 build tool used by developers and it has been around for more than a decade.  Maven stands out among other build tools due to its extremely extensible architecture, which is built on of the concept of convention over configuration.  It’s widely used by many open source Java projects under Apache Software Foundation, Sourceforge, Google Code, and more. 

Maven Essentials is a fast-paced seminar that shows you the key concepts in Maven and build automation.  We get started by introducing you to Maven and exploring its core concepts and architecture.  Next, you will learn about and write a Project Object Model (POM) while creating your own Maven project.  You will also find out how to create custom archetypes and plugins to establish the most common goals in build automation.  After this, you’ll get to know how to design the build to prevent any maintenance nightmares, with proper dependency management.  We then explore Maven build lifecycles and Maven assemblies.  Finally, you will discover how to apply the best practices when designing a build system to improve developer productivity. 

This 3-day class teaches you everything you need to know to confidently implement and use Maven. 

What You Will Learn 

  • Explore the essentials of Apache Maven essentials to arm yourself with all the ingredients needed to develop a comprehensive build automation system 
  • Identify the extension points in Apache Maven and learn more about them in-depth 
  • Improve developer productivity by optimizing the build process with best practices in Maven 
  • Comprehend the key concepts in Apache Maven 
  • Build your own custom plugins and get to know how Maven extension points are used 
  • Troubleshoot build issues with greater confidence 
  • Optimize Maven’s configuration settings 
  • Write custom lifecycles and extensions 
  • Get hands-on and create a Maven assembly 
  • Explore the best practices to design a build system that improves developer productivity 

Course Outline 

1: Apache Maven Quick Start 

  • Installing Apache Maven 
  • Configuring the heap size 
  • Hello Maven! 
  • Convention over configuration 
  • Maven repositories 
  • IDE integration 
  • Troubleshooting 

2: Understanding the Project Object Model (POM) 

  • Project Object Model (POM) 
  • POM hierarchy 
  • Super POM 
  • POM extending and overriding 
  • Maven coordinates 
  • The parent POM 
  • Managing POM dependencies 

3: Maven Archetypes 

  • Archetype quickstart 
  • Batch mode 
  • Archetype catalogues 
  • The archetype plugin goals 
  • Java EE web applications with the archetype plugin 
  • Android mobile applications with the archetype plugin 
  • EJB archives with the archetype plugin 
  • JIRA plugins with the archetype plugin 
  • Spring MVC applications with the archetype plugin 

4: Maven Plugins 

  • Common Maven plugins 
  • Plugin discovery and execution 

5: Build Lifecycles 

  • Standard lifecycles in Maven 
  • Lifecycle bindings 
  • Lifecycle extensions 

6: Maven Assemblies 

  • The assembly plugin 
  • The assembly descriptor 
  • Artifact/resource filtering 
  • Assembly help 
  • A runnable standalone Maven project 

7: Best Practices 

  • Dependency management 
  • Defining a parent module 
  • POM properties 
  • Avoiding repetitive groupIds and versions, and inheriting from the parent POM 
  • Following naming conventions 
  • Think twice before you write your own plugin. You may not need it! 
  • The Maven release plugin 
  • The Maven enforcer plugin 
  • Avoiding the use of unversioned plugins 
  • Descriptive parent POM files 
  • Documentation is your friend 
  • Avoid overriding the default directory structure 
  • Using SNAPSHOT versioning during the development 
  • Get rid of unused dependencies 
  • Avoiding keeping credentials in application POM files 
  • Avoiding using deprecated references 
  • Avoiding repetition – use archetypes 
  • Avoiding using maven.test.skip 
View All Courses

    Course Inquiry

    Fill in the details below and we will get back to you as quickly as we can.

    Interested in any of these related courses?