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
- groupId company domain name flashbacks + project
- artifactId module name
- 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 |