1) Create a project
MVN archetype:generate-dgroupid=com.mycompany.app-dartifactid=my-app-darchetypeartifactid= Maven-archetype-quickstart-dinteractivemode=false
MVN archetype:generate Fixed format
-dgroupid Organization identification (package name)
-dartifactid Project Name
-darchetypeartifactid specify Archetypeid,maven-archetype-quickstart, create a Java Project;maven-archetype-webapp, create a Web Project
-dinteractivemode whether to use interactive mode
-darchetypecatalog=local when the command downloads the Word file slowly with the local file Http://repo.maven.apache.org/maven2/archetype-catalog.xml
2) compiling the source code
MVN Compile
3) Compile the test code
MVN Test-compile
4) Clear
MVN clean
5) Run the test
MVN test
6) Production Site Directory and packaging
MVN Site-deploy
7) Install the current project's output file to the local repository
MVN Install
8) Packaging
MVN Package
9) First clear and then pack
MVN Clean Package
10) hit into a jar package
MVN Jar:jar
11) Build Eclipse Project
MVN Eclipse:eclipse
12) View Help information
MVN help:help
13) See what Project type categories maven has
MVN archetype:generate-darchetypecatalog=intrenal
Maven command to create a project