1.Eclipse Creating a Maven project
Creating a Maven project with Eclipse is very simple, choose the menu item File>new>other (or right-click the mouse button in the project structure), select Maven Project under Maven in the popup dialog box,
Then click the Next button, Next button, select a archetype to specify the type of project we want to create. We choose the common Java project "Maven-archetype-quickstart",
Then click the Next button to enter the group ID, Artifact ID, Version, package,
One thing to note here is that when we enter the group ID and the Artifact ID, Eclipse automatically gives us the package name after the package, noting that the packet name cannot be capitalized, and that the group ID is all lowercase, Artifact If the ID is capitalized, you manually change the package name to the one you want, so that you do not violate the Java Package naming specification.
Then click the Finish button and the MAVEN project is created.
2.Eclipse Run MVN command
Right-click on the MAVEN project or Pom.xml and select Run as from the popup shortcut menu to see the common MAVEN commands,
Select the command you want to execute to perform the appropriate action, and eclipse will output the build information in the console.
What if the default option does not have the command we want to execute? Choose Maven Build to customize the command we want to execute, enter the command we want to execute in the goals of the popup dialog, such as clean install, set the name description meaning, and click Run. Eclipse will save this setting for us, which can be run configurations ... Found in,
Saved Records,
Using Eclipse to create a project and run the MVN command is so easy.
(eight) Eclipse create maven project run MVN command