eclipse create maven project

    To build a project with maven, you first need to download maven and install and configure it well.

    Download address: http://maven.apache.org/download.html. Select the version you want to download and save it to the usual installation directory. Unzip maven to a common directory for software installation, such as: D:\Softwares\apache-maven-3.2.2.

    Configure environment variables

    Add a new system environment variable MAVEN_HOME and set its value to the destination of your installation MAVEN_HOME= D:\Softwares\apache-maven-3.2.2

    Update the system PATH variable and add ;%MAVEN_HOME%\bin; to the end

    At this point, the mavn environment is done. Test it. In the cmd command line window, you can check the version number of maven in mvn -v. Note that jdk needs to be installed before installing maven.

 

    The above is the installation and configuration of maven, the next step is to use eclipse to create a maven project.

    First click Preferences under eclipse windows, search for maven, click Installations, and then click the add button to add the maven installation directory

 

 

    This will start creating the maven project.

    New project->other->Maven Project->Next->Search webapp and select maven-archetype-webapp->Next->fill in groupid and artifactid (project package name and project name), and then the maven project is created.

Guess you like

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