How to create user defined properties in Maven ?

By | October 31, 2020

In this post, We will learn How to create user-defined properties in Maven?

There are scenarios when we want to create variables or properties and afterward reuse it in pom.xml so that it can be managed easily.

The properties can be defined as below:

For example – look at the below example, Where spring.version has been defined in pom.xml for reuse purpose

That’s all about How to create user-defined properties in Maven?
If you have any feedback or suggestion please feel free to drop in below comment box.

Leave a Reply

Your email address will not be published. Required fields are marked *