Maven
A build tool for Java in which a project declares itself in a pom.xml file and is built by a fixed lifecycle of phases.
In more detail
Maven favours convention: a standard folder layout, a fixed sequence of phases and plugins that do the work, so an unfamiliar Maven project is readable within minutes. Dependencies are named by coordinates and downloaded from Maven Central into a local cache. The course runs it through the Maven Wrapper, mvnw.
Example
./mvnw -B -ntp testRelated terms
- POM — Maven's project file, pom.xml, which declares a project's coordinates, properties, dependencies and plugins.
- Maven coordinates — The group, artifact and version that together uniquely name a project or library, such as com.example:inventory:1.0.0.
- Maven build lifecycle — Maven's fixed, ordered list of phases, validate, compile, test, package, verify, install and deploy, where asking for one runs all before it.
- plugin — An add-on that extends a tool with extra features, such as the Maven and Gradle plugins that compile, test and package Java code.
- build wrapper — A small script committed to a project that downloads and runs the exact build tool version the project expects.
- Gradle — A build tool whose build is a script in a programming language and a graph of tasks that are skipped when their inputs have not changed.
Taught in
- Package Feeds, Views And Upstream Sources — Microsoft Azure DevOps Engineer Expert (AZ-400) Exam Prep
- The Virtual Machine, The Kit And The Runtime — Modern Java: Virtual Threads & High-Throughput Services
- The Toolchain: Maven — Modern Java: Virtual Threads & High-Throughput Services
- The Toolchain: Gradle — Modern Java: Virtual Threads & High-Throughput Services
- Packaging Into A Container — Modern Java: Virtual Threads & High-Throughput Services