First, several of the commands commonly used in MAVEN are:
Clean clear the target directory
Compile compiling
Package to target directory
Install package to local warehouse
----------------------------------------------------------------------------------------------
Clean
In Eclipse's Run As-maven build, enter clean in goals, click Run
Console output:
My project is named Maven-demo, notice the information inside the red box, delete the target file in the project directory file
Compile
Console output:
In the project file, the Target\classes directory is created and your Java file is compiled into a class file, stored in this directory
Install
Note that the install will be compile compiled first, then the project will be packaged into target, in your pox.xml, your packaging if it is a war, then the Big Siege War, if the jar, then packaged as Jar, And then copy it to your local warehouse.
Package
The package will try compile first, and then package your project into the target directory, unlike the install, where the install makes a copy of the packages to the MAVEN local repository.
Maven operations in Eclipse