Maven property

A named value in a pom.xml properties block, reused elsewhere in the file as ${name} or read by plugins.

In more detail

Properties let a version live in one place, so upgrading a library means editing one line. Some properties configure plugins directly: maven.compiler.release sets the Java release and project.build.sourceEncoding sets the source encoding.

Examples

<junit.version>5.14.4</junit.version>
<version>${junit.version}</version>

Related terms

Taught in

References