
Explore Maven as a convention-over-configuration build automation tool that manages dependencies, lifecycle, plugins, archetypes, and the M2 Eclipse plugin, enabling Java projects to build artifacts efficiently.
Explore Maven, its benefits, and what it can do for you. See the major components and how they work together, then install Maven and Eclipse for a hello world demonstration.
Explore maven as a unified build and dependency management tool that standardizes project management and artifact creation (jars, wars, ears) through a repeatable command-line workflow and ide integration.
Explore the Maven landscape, from the project object model (pom.xml) with artifact id, group id, and version, to repositories, plugins, goals, and the default lifecycle's phases like compile and deploy.
Explore how Maven's components—project coordinates, dependencies, plugins, and the build lifecycle—work together to resolve artifacts, run plugin goals, and produce builds from local and remote repositories.
Install Apache Maven on your local machine by downloading the binary zip from the Maven site and extracting it. Add bin folder to your path and verify with mvn -version.
Learn to download, install, and configure the Eclipse IDE, set up a 64-bit Eclipse Luna workspace, and install a local terminal plugin from the Eclipse marketplace to run Maven.
Explore a maven hello world project and learn to compile and package it into a jar using command line, with artifact IDs, group IDs, and version in the project file.
Set up a Maven project with a standard directory layout and populate the palm with basic information. Explore inheritance via a super project and profiles for environment builds.
Create a simple Maven project in Eclipse, add a source main java and a hello world class, configure pom.xml with model version 4.0.0, artifactId, groupId, and version, then mvn compile.
Learn how to enrich your Maven project with extra POM information—packaging, informal name, description, license, organization, and developers—and build a web site with mvn site.
Explore maven's standard directory layout and convention over configuration, including source main Java directory, resources, web app, and test directories, plus how to customize those paths in the pom.xml.
Explore how Maven uses inheritance to share configuration across pom files, from super pom to child poms, and view the effective pom to see merged settings and developer info.
Explore how Apache Maven profiles customize builds for development, test, and production, override artifact destinations, and activate automatically via environment variables or the -P flag.
Generate a maven project quickly with the archetype plugin and generate goal, using the quickstart archetype from the central repository, then configure groupId, artifactId, version, and packaging.
Master dependency management in Maven by pulling libraries from local and remote repositories using pom coordinates, while handling transitive dependencies, conflicts, and dependency scope across lifecycle phases.
Learn how Maven's dependency management pulls down libraries such as Commons Lang via the pom.xml, uses the Maven central repository, and caches dependencies in a local repository.
Learn how Maven automatically downloads transitive dependencies and uses the dependency management system to pull in libraries such as JUnit and Spring, ensuring the correct jars are on the classpath.
Learn how Maven resolves dependencies from remote repositories, including the central repository, by configuring settings.xml profiles and repositories, activating a Spring remote repository, and handling authenticated sources like Oracle.
Discover how Maven dependency scope controls when dependencies appear on the classpath during build, test, and run. Compare compile, test, provided, runtime, and system scopes with practical examples.
Explore how Maven resolves conflicts between transitive dependencies, and use exclusions to force specific versions. The lesson demonstrates dependency exclusions with commons-lang, classpath outcomes, and compiling with debug flags.
Explore the Maven lifecycle and plugins, learn how phases trigger tasks like compile and clean, and practice invoking and configuring plugins via command line and pom.xml.
Explore how Maven's build lifecycle uses phases and bound goals across default, clean, and site lifecycles to drive plugins from resources to deployment.
Explore the default Maven life cycle's key phases: compile, test-compile, test, package, install, and deploy, and learn how they transform sources into artifacts and enable deployment.
Understand how Maven plugins and goals drive builds, with the compiler plugin’s compile goal and other goals, and how to configure them from the command line and pom.
Learn to configure Maven plugin goals via properties, inspect them with the help plug in, and enable verbose compiler output using command line arguments or palm file configuration.
Learn how to build a Maven custom plugin with an archetype, implement a Mojo, and run the touch goal, then install and test it in a sample project.
Learn to create and reference a custom Maven plugin with a short prefix, configure executions, and bind its goals to the compile phase in a sample project.
Explore core maven plug-ins that cover about 90 percent of usage, learn how to invoke and configure them, including clean, deploy, install, surefire, war, and jar.
Learn how the maven clean plugin clears the target directory to start fresh before builds, deleting previous artifacts and clutter.
Learn to use the jar plugin to build a jar from the current project (or test classes), run the package phase, and configure final name, force creation, and exclude patterns.
Learn how to use the Java doc plugin in Apache Maven to generate Java docs for a project, customize headers and footers, and jar docs with Java doc goal.
Learn how to use the install and deploy plugins to publish Maven artifacts to a local repository and a remote repository via distribution management with a repository manager.
Explore the Maven surefire plugin and learn to run unit tests within the build, configure skip and ignore options, and install artifacts to the local repository.
Explore how the Eclipse plugin converts a standard Maven project into an Eclipse project with a single command; import the Eclipse-ready project into your workspace.
Package a web application with the Maven war plugin. Generate a web app using the archetype plugin, configure groupId and artifactId, and build the war file.
Learn to create and structure maven projects using archetypes and multi-module setups, quickly generating templates, building custom archetypes, and managing dependencies across a parent project and modules.
Discover the power of archetypes as templates to quickly generate a preconfigured Spring Data JPA project with Hibernate and MySQL, reducing setup time and ensuring consistency.
Create a custom maven archetype to standardize project setup across your organization, using the archetype plugin to generate templates and install them in the local repository.
Learn to configure a multi-module Maven project with a parent pom, define modules, and use the reactor plugin to build, clean, and install across modules.
Explore Maven's additional features, including deploying a Word file to a Tomcat servlet container with a plugin, encrypting credentials, using dynamic properties, and debugging and help options.
Install and configure the Apache Tomcat server container, download the Tomcat 8 binary, extract to a directory, set up a manager user, start Tomcat, and access the manager at localhost:1880.
Deploy a web application by building a war with the Maven Tomcat plugin and deploying it to a Tomcat servlet container, using the configured Tomcat manager credentials and server settings.
Encrypt passwords in Maven to protect credentials for remote servers. Create a master password, generate encrypted passwords with the Maven command, and configure settings-security.xml to securely store Tomcat credentials.
Discover how Maven properties enable dynamic configurations across multi-module projects. Reference project, environment, and custom properties in the pom.xml to customize war names and deployments.
Explore Maven help and debugging features from the command line, using help, version, and logging options, along with dash flags for quiet, debug, and offline builds.
Explore how the M2E Eclipse plugin lets you manage Maven projects inside Eclipse, from creating projects and managing dependencies to executing build phases and importing plugins, all via a GUI.
Learn to create a Maven project in Eclipse using the M2E plugin, choosing between a simple project and an archetype-based web app, and configure pom properties, dependencies, and modules.
Discover how the Maven 2 plugin simplifies dependency management by pulling commons-lang3 for isNumeric, resolving transitive dependencies, and configuring Eclipse to index repositories on startup for seamless downloads.
Learn to run Maven goals and phases from the Eclipse M2E GUI, using predefined builds like clean, generate-sources, install, and test, and configure custom compile and package tasks.
Learn to add a third-party maven plugin via the Eclipse m2e integration, using the maven release plugin to auto update the palm file version.
Master Mavin, a build tool using convention over configuration to simplify compiling, packaging, and deploying, while leveraging dependency management and standardized project structures for efficient plugin and continuous integration workflows.
In this Learning Apache Maven training course, expert author Kevin Bowersox will teach you how to perform Java builds more efficiently with Maven. This course is designed for intermediate Java developers.
You will start by learning how to build a project, then jump into learning dependency management. From there, Kevin teaches you about the Maven lifecycle and plugins, including plugin parameters and custom plugins. This video tutorial also covers goals and plugins, including how to install and deploy a plugin. Finally, you will learn about archetypes, additional features, and the .M2E Eclipse plugin.
Once you have completed this computer based training course, you will be fully capable of using Maven to build your own Java projects. Working files are included, allowing you to follow along with the author throughout the lessons.