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
- POM — Maven's project file, pom.xml, which declares a project's coordinates, properties, dependencies and plugins.
- --release flag — The javac option that compiles for an older Java release, checking against that release's library and writing its class file version.
- UTF-8 — The most widely used character encoding, which can represent every Unicode character and matches ASCII for plain English letters.
Taught in
- The Toolchain: Maven — Modern Java: Virtual Threads & High-Throughput Services