Current location - Trademark Inquiry Complete Network - Trademark inquiry - How to use the windows maven command line command?
How to use the windows maven command line command?
Win+r opens a command line window.

Switch to the location of the main pom file:

Execute the corresponding command:

How to create Maven project with command prompt and download maven

After the download is successful, extract it to the local disk.

Configure maven environment variables MAVEN_HOME and path.

To test whether maven is installed correctly, enter mvn -v in cmd.exe.

After maven is installed correctly, enter the corresponding disk.

Then enter the mvn prototype: Generate.

Then press enter.

Select the version.

Then fill in the groundId, artifactId, version and package, and press enter.

Determine the attribute configuration

Successfully created maven project