eclipse configuration and creation of maven project 20200710

  1. 下载apache-maven-3.6.3
    http://maven.apache.org/download.cgi

Insert picture description here
2. Unzip the folder and enter the conf folder
E:\apache-maven-3.6.3-bin\apache-maven-3.6.3\conf
Open with notepad++ and Insert picture description hereadd content as shown in the figure below:

Insert picture description here
Content address: https://help.aliyun.com/document_detail/102512.html?spm=a2c40.aliyun_maven_repo.0.0.36183054Iuhn6i

    <mirror>
        <id>aliyunmaven</id>
        <mirrorOf>*</mirrorOf>
        <name>阿里云公共仓库</name>
        <url>https://maven.aliyun.com/repository/public</url>
    </mirror>
  </mirrors>
  1. Configure environment variable
    MAVEN_HOME: E:\apache-maven-3.6.3-bin\apache-maven-3.6.3
    path:%MAVEN_HOME%\bin

  2. cmd input mvn -v If the following content pops up, it means that the variable configuration is successful

Insert picture description here
5. Create a maven project in eclipse

Insert picture description here
Insert picture description here
Insert picture description here
Build the project:

Insert picture description here

Guess you like

Origin blog.csdn.net/KathyLJQ/article/details/107252043