Maven used to streamline the command line

1.mvn -v View maven version

2.mvn compile Compile the project to generate target folder, which contains the byte code file and compile the generated test report. Open cmd, cd to the root directory of the project, run the command as shown in (if you're running this command for the first time, it will download a lot of jar package, will be a bit slow):

And after running the command, generates target folder in the root directory of the project

3.mvn test test project

4.mvn package items packed into the jar package

Run the command generates jar package file in the target directory

5.mvn clean delete target folders

6.mvn install the installation package to the local repository jar

7.mvn archetype: generate command Follow the prompts to create the project directory

8.mvn archetype: generate -DgroupId = organization name -DartifactId = project name - the names of the module name -DVersion = version number of the code where -Dpackage =

Guess you like

Origin www.cnblogs.com/ppp1314520818/p/11300057.html