Maven
Welcome, champion! 🔥
You've mastered 0 of 90 lessons. Start your first lesson free — no signup needed.
About this course
Many Java developers copy a pom.xml from the last project, run mvn clean install and hope. When the build breaks or the wrong version of a library lands on the classpath, the POM is a black box. This online Maven course on Abekus teaches the build tool properly, starting from a first mvn package on a hello-world project and building up to the POM, lifecycles, dependencies, repositories and publishing, plugins, multi-module projects, profiles, tests and the Maven 3.10 and Maven 4 changes, in short reading-card lessons each followed by an MCQ quiz.
Who this Maven course is for
It is written for engineering students and junior Java developers who can write Java but treat the build as something that just happens. You should be comfortable with Java classes and packages and with running commands in a terminal; the course does not teach Java itself. By the end you can read and edit a POM, predict what an mvn command will run, untangle a dependency conflict from dependency:tree output, set up a multi-module build and publish an artifact.
Examples follow one setup: Maven 3.10 on Java 21 projects with maven.compiler.release set to 21, JUnit 5 tests, the Maven Wrapper in project commands, POM model version 4.0.0, and Maven Central through the Central Publisher Portal as the publishing target. Maven 4 is covered in its own topic and described as a release candidate. The course leaves out IDE screens and repository manager consoles, Gradle build scripts beyond one comparison lesson, writing custom plugins, site and report authoring, and Spring Boot application code. This is an independent course and is not affiliated with or endorsed by the Apache Software Foundation.
How the lessons work
Each lesson is a short set of reading cards on one feature, usually with a POM fragment or an mvn command and the output it prints, followed by a quiz of multiple-choice questions that often ask what a build will do. Lessons go from basics up: a first build and Maven's vocabulary, then the POM, lifecycles and plugin bindings, declaring dependencies and transitive resolution, repositories, settings and publishing, core plugins and their configuration, parent POMs, BOMs and reactor builds, profiles, tests and reliable builds, Maven version changes, and finally comparisons and worked cases. Snippets are kept short. You move at your own pace.
MCQ practice vs video courses for Maven
Video courses on Udemy, Coursera or YouTube are a good choice if you want to watch someone create a project in an IDE and run the build. This course is built for a different job: a short explanation followed straight away by questions about real POMs and commands, such as which phases mvn verify runs, which version of a library wins when two paths bring in different ones, whether a test-scoped dependency reaches a downstream project, or what -DskipTests really skips. Maven's rules are precise, and predicting the result question by question builds the mental model that saves debugging time later. Many developers use both: a video for a first walkthrough, and questions to make the details stick.
Common Maven mistakes
The course corrects these directly:
- Thinking mvn install uploads to Maven Central. The install phase writes to the local repository; deploy copies to a remote one.
- Believing the dependency declared first always wins. The nearest definition in the tree wins; declaration order only breaks ties at equal depth.
- Using -DskipTests to skip compiling tests. It skips running them; -Dmaven.test.skip=true skips both.
- Expecting Failsafe to fail the build in the integration-test phase. It records failures there and fails in verify, so cleanup still runs.
- Treating Maven 4 as the current stable release. It is a release candidate; examples run on Maven 3.10.
- Publishing through OSSRH. It was shut down on 30 June 2025; publishing goes through the Central Publisher Portal.
- Confusing a parent POM with an aggregator. Inheritance and aggregation are separate mechanisms that are often used together.
Best way to learn Maven
Use a project you already have. Print its effective POM, run dependency:tree and explain to yourself why each version was chosen, then run a phase and name the plugin goals that will fire before you read the log. The last part of the course is built around choices: Maven versus Gradle and Ant, provided versus runtime scope, Surefire versus Failsafe, and when to use a BOM, a profile or separate modules, applied to the Spring Boot parent POM, a Maven build in a CI pipeline, publishing an open source library to Central and fixing a Jackson version conflict.