Use the plugin maven-archetype-plugin to automatically generate project skeletons
First find the central repository: go to the pom file in maven-model-builder under lib under the maven installation directory
Find the central repository address: https://repo.maven.apache.org/maven2
The plugin address is: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/
mvn --version //maven environment
mvn help:describe -Dplugin=org.apache.maven.plugins:maven-archetype-plugin //View plugin functions
mvn help:describe -Dplugin=archetype //Use plugin alias
mvn archetype:generate //Create project
Enter 7(quickstart), enter groupId, enter artifactId, enter version, enter package
Generate eclipse project:
Go to the project root directory and execute mvn eclipse:eclipse
Automatically generate .classpath and .project files and import them into eclipse.