Maven commonly used commands and basic concepts

Official website: http://maven.apache.org/#

mvn clean clean up cache

mvn validate validation

mvn compile compiler

mvn test test

mvn package labeled jar package

mvn verify checks

mvn install setup project to the local maven repository

Website mvn site build the project-related information and can view the site of the project in a browser

mvn deploy  部署

 

maven coordinates identified by the following three

  1. groupId company domain name flashbacks + project
  2. artifactId module name
  3. version module version

3 ranges used depend scope of range

  It is valid for the main program It is valid for the test program Whether to participate pack
compile effective effective Participation package
test invalid effective Not involved in packaging
provided effective effective Not involved in packaging

 

 

 

 

 

 

Published 242 original articles · won praise 13 · views 10000 +

Guess you like

Origin blog.csdn.net/qq_41813208/article/details/104058174