Use of mvn command (by yourself)

mvn package -Dmaven.test.skip=true Package in your own local
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

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326750930&siteId=291194637