From the course: Introduction to Maven

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

POM properties

POM properties

- [Instructor] Properties being present in a POM file are often indication of someone who has manipulated POM files for some time and has felt the pain that properties aims to solve. So before we jump into some configuration, let's talk about the purpose. Properties has several key features that I find value in. First, it reduces duplication. Oftentimes when configuring the POM, you find yourself putting the same value for an item. Properties help reduce that. In the same vein, it allows you to streamline configuration. Often when used in conjunction with a parent POM, which we will talk about later, you can radically improve your configuration and updating that configuration. You also get the benefit of keeping items in sync, especially versions of similar libraries. Now, if you're deploying to a Big Iron War server, this is very important. This is less important when you're building a bunch of microservices with embedded Tomcat, for instance, but that's for another topic. Properties…

Contents