SPRING CONCEPTS

Maven

Spring Concepts / Maven

Maven builds Java projects and resolves their dependencies.

Understand the idea

pom.xml defines project coordinates, dependencies, properties, and plugins. Maven compiles source, runs tests, and packages artifacts according to its lifecycle. The Boot plugin creates an executable application JAR.

A concrete example

mvn test
mvn clean package
java -jar target/todo-rest-1.0.0.jar

In the application

Every backend includes a complete pom.xml and targets Java 21. First-time dependency resolution requires repository connectivity.

The JDK Maven reports determines which compiler it uses. An installed JDK is not enough if JAVA_HOME points elsewhere.

Related concepts

Read the official documentation ↗
Java 21 · Spring Boot 4.1.1 · Edupoly