eclipse create maven project

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.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325979508&siteId=291194637