Apache Maven is a build and dependency management tool for Java projects. Each project is described in a pom.xml file, the Project Object Model. Maven runs a standard lifecycle of phases such as compile, test, package and deploy, and pulls dependencies from local and remote repositories.

The posts explain the clean, default and site lifecycles with their phases and goals. Others show how to write a custom plugin and compare the Maven Release Plugin with the Git Flow plugin. Repository guides cover configuring Sonatype Nexus and Artifactory through settings.xml, uploading artifacts to Nexus, and publishing JAR or WAR files to the GitLab Package Registry from CI. Troubleshooting posts fix errors such as "resolution will not be reattempted until the update interval" and a missing surefire-reports directory. There is also a Develocity tutorial on Build Scan and Build Cache, and a note on how Maven 2 differs from Maven 1.

The material helps Java developers, build and release engineers, and DevOps engineers who maintain CI pipelines and artifact repositories.

Start here

Latest Apache Maven articles

Public Package Repositories by Programming Language

Public Package Repositories by Programming Language Public package repositories (also known as package registries, artifact repositories or dependency repositories) allow developers to publish, discover, download and manage…

Read More

Major programming languages, the common package tool(s), and the central community package repository.

Most programming languages pair a command-line package tool with a public registry it downloads dependencies from. Examples are cargo with crates.io, pip with PyPI, Maven with Maven…

Read More

Develocity: The Complete Beginner-to-Advanced Tutorial

A practical self-study course covering Developer Productivity Engineering, Build Scan, Build Cache, build acceleration, test optimization, architecture, deployment, integrations, security, and enterprise operations. 28 chapters | Beginner…

Read More

Jenkins Build and Release Training Blueprint: Git/SVN with Maven and Ant

This revised guide turns a legacy training announcement into a practical learning blueprint for build-and-release engineering. It maps the Jenkins workflow, compares core tools, and includes realistic command and pipeline examples.

Read More

Maven Release Plugin vs Maven Git Flow Plugin for Artifact Releases

Learn how Maven Release Plugin and Maven Git Flow Plugin automate Java artifact releases. Compare workflows, commands, and selection criteria for your branching strategy.

Read More

Sonatype Nexus Repository Manager: A Practical DevOps Introduction

Sonatype Nexus helps teams centralize dependency downloads and internal artifact publishing. This guide shows how Nexus fits into CI/CD, when to use hosted/proxy/group repos, and how to configure common build clients.

Read More

Gradle for DevOps: Core Concepts, Build Workflow, and Practical Examples

Gradle is a flexible build automation tool used to compile, test, package, and publish software in repeatable pipelines. This guide explains how Gradle works, how it compares with Maven and Ant, and how to start with practical commands.

Read More

Nexus Training in India: Course Scope, Hands-On Labs, and Registration Details

This revised guide summarizes the original Nexus training offering, including audience, delivery model, and syllabus topics. It also adds a practical lab workflow and sample Nexus/Maven tasks to help learners prepare.

Read More

Maven Training Guide for Build and Release Engineers: Syllabus, Labs, and Command Cheat Sheet

This revised guide turns a legacy Maven training announcement into a practical, engineer-friendly reference. It summarizes the original syllabus, shows a realistic Maven workflow, and includes command examples you can use in daily build and release work.

Read More

Maven Learning Resources: A Practical Study Plan with the Better Builds with Maven PDF

The original post shared one Maven book link. This revised guide preserves that resource and adds a practical learning workflow, comparison table, and hands-on Maven commands.

Read More

Maven vs Ant: Key Differences, Build Workflow, and When to Use Each

Maven and Ant both automate Java builds, but they use very different models. This guide compares their workflows, configuration style, and CI implications with practical examples.

Read More

Maven CLI Options Reference: Practical Flags, Comparisons, and Command Examples

A structured Maven command-line reference for CI/CD and local builds, including option comparisons, workflow guidance, and ready-to-use mvn commands. Based on the original 2013 cheatsheet, updated for readability and operational use.

Read More

Advanced Features of Smart Build Tools for Faster, Reproducible CI/CD

Smart build tools do much more than compile code: they cache, parallelize, enforce dependency rules, and improve reproducibility. This guide compares common options and shows practical commands you can use in real pipelines.

Read More

Apache Maven 3.0-RC1 Pre-Release Testing: Practical Regression Checks for Maven 2.x Teams

This updated guide turns the original Maven 3.0-RC1 testing announcement into a practical workflow for DevOps and build engineers. Learn how to run side-by-side Maven 2.x vs 3.0-RC1 checks and report reproducible regressions.

Read More

Sonar Maven Plugin 1.0-beta-2: What Changed for Archiva/Nexus-Based Builds

This historical release note introduced simpler Sonar Maven Plugin behavior when using repository managers like Archiva or Nexus. Here’s what changed from beta-1, how compatibility works with Sonar versions, and how to validate legacy CI behavior.

Read More

Sonar Maven Plugin 1.0-beta-2: What Changed and How to Configure Legacy Builds

This update from the Mojo team simplified Sonar Maven Plugin configuration when using repository managers like Archiva or Nexus. Here’s a clear breakdown of compatibility, behavior differences from beta-1, and practical legacy setup guidance.

Read More

Maven2 Web Application Setup: Legacy Step-by-Step Guide with Build, Jetty, and Site Reporting

A practical Maven2-era walkthrough for creating a Java web app, running core build goals, and generating docs and reports from pom.xml. This revision keeps the original workflow but adds structure, comparisons, and implementation-ready snippets.

Read More

Maven Clover for Distributed Java Applications: Instrument, Collect, and Aggregate Coverage

Learn a practical Clover + Maven workflow for distributed test environments. This walkthrough covers instrumentation, remote execution, coverage file collection, and final report generation.

Read More

Maven 3.0-beta-1 Release: What Was Announced and How to Evaluate It Safely

This guide revisits the Maven 3.0-beta-1 announcement and explains what it actually promised: Maven 2 compatibility goals, usability and performance direction, and separate plugin release cadence. It also provides a practical workflow and commands for evaluating a beta Maven version in a controlled environment.

Read More

Maven Interview Questions: Practical Answers on POM, Lifecycle, Plugins, and Repositories

Prepare for Maven interviews with concise, real-world answers and configuration snippets. This guide covers pom.xml vs settings.xml, lifecycle flow, repositories, plugin execution, and troubleshooting.

Read More

Maven POM Explained: Structure, Inheritance, and Practical pom.xml Examples

The Project Object Model (POM) is Maven’s central configuration file and the source of truth for how a Java project is built. This guide covers required fields, inheritance (Super POM and parent POM), and how Maven creates the effective build configuration.

Read More

Maven Reporting Plugins: Configure Site Reports in pom.xml (All, Selective, and reportSets)

Maven reporting plugins generate project documentation during the site lifecycle and are configured in the reporting section of pom.xml. This guide shows how to run all reports, select specific ones, and structure reportSets cleanly.

Read More

Maven Properties Reference: project.*, settings.*, env.*, and Custom POM Values

Maven properties are the backbone of reusable, environment-aware builds. This revised reference explains major property sources, interpolation flow, and practical commands for inspecting real values.

Read More

Maven Profiles in Practice: Definition, Activation, and Reliable Multi-Environment Builds

Maven profiles let you customize one build for multiple environments without cloning POM files. This guide covers profile types, activation methods, CLI usage, and team-safe best practices.

Read More

Maven issueManagement: Configure Issue Tracker Metadata Correctly in pom.xml

Learn what Maven’s issueManagement section does, how to configure it in pom.xml, and how to validate that consumers can find your issue tracker metadata.

Read More

Apache Maven Complete Guide: Concepts, Installation, settings.xml, and First Build

Learn what Maven is, how its lifecycle and POM model work, and how to install and configure it for team-friendly builds. This revised guide includes workflow diagrams, command references, and practical examples.

Read More

Maven 1 vs Maven 2: Architecture, Lifecycle, and Migration Differences

Maven 2 was a full rewrite of Maven 1, with a new lifecycle model, different configuration patterns, and no Maven 1 plugin compatibility. This guide compares both clearly and shows the commands and structure teams used when migrating.

Read More

Maven Interview Questions and Practical Answers for DevOps Engineers

A cleaned-up, practical Maven interview guide focused on real build scenarios: POM vs settings.xml, lifecycle flow, repositories, and troubleshooting. Includes configuration snippets, command comparisons, and interview-ready explanations.

Read More

EC2Deploy and the Cloud Tools Maven Plugin: Architecture, Goals, and Deployment Workflow

This revised guide explains what the 2010 EC2Deploy and Cloud Tools release actually introduced, how its components fit together, and how the Maven goals map to deployment operations on EC2. It also covers what modern teams should verify before relying on this legacy toolchain.

Read More

Apache Maven: The Essential Guide for Modern Developers

In the fast-paced world of software development, efficiency, consistency, and automation are non-negotiable. Managing a project’s build lifecycle, dependencies, and documentation manually is a recipe for delays…

Read More

Apache Maven: frequently asked questions

What are the Maven build lifecycles?

Maven has three built-in lifecycles: clean, default and site. Running a phase also runs every earlier phase in the same lifecycle, so mvn package validates, compiles and tests the project before packaging it.

What is the difference between mvn install and mvn deploy?

mvn install puts the built artifact in your local repository, usually ~/.m2/repository. mvn deploy also uploads it to the remote repository named in the POM's distributionManagement section, such as Nexus or Artifactory.

How do I fix "resolution will not be reattempted until the update interval"?

Maven cached an earlier failed download in the local repository and will not retry until the update interval passes. Fix the underlying repository or credentials problem, then run the build with mvn -U or delete the cached *.lastUpdated files for that artifact.

Should I use Maven or Gradle?

Maven uses a declarative XML POM and a fixed lifecycle, which keeps builds predictable and consistent across projects. Gradle uses a Groovy or Kotlin DSL with a task-based model and incremental builds, which gives more flexibility. Both use the same Maven-format repositories.