mvn install -Dmaven.test.skip=true Generate a jar in your own repository
mvn deploy -Dmaven.test.skip=true Package in the central repository
https:// maven.apache.org/pom.html
This is an introduction to pom, which says
quote
This is a listing of the elements directly under the POM's project element. Notice that modelVersion contains 4.0.0. That is currently the only supported POM version for both Maven 2 & 3, and is always required.
So don't worry about it, in maven's pom
<modelVersion>4.0.0</modelVersion> this is required, no reason no reason