SAGARFIVE

Tutorials

3.2 What is a modelVersion in pom.xml?

  • This element indicates what version of the object model this POM is using.
  • The version of the model itself changes very infrequently but it is mandatory in order to ensure stability of use if and when the Maven developers deem it necessary to change the model.
  • It is the sub element of the project. It specifies the modelVersion. It should be set to 4.0.0.

  <modelVersion>4.0.0</modelVersion>