Maven learning (1): maven installation and related configuration introduction

                                                Maven learning (1)

 1. maven installation

     1. First of all, you need to install jdk first, so I won't go into details here.

      2. http://maven.apache.org/    can go to the apache maven site to download

      3. Unzip to d:\maven

      4. Add the environment variable MAVEN_HOME D:\maven3.3.3

                

          ;%MAVEN_HOME%\bin; added to the path variable at the end

      5. Execute cmd, mvn -v to verify that maven is installed successfully         

   

Two. maven related configuration introduction

    ~/.m2/settting.xml: maven configuration file

    ~/.m2/repository: local repository

    On Unix (and OSX), you can use the ~ symbol to represent your home directory, (eg ~/bin for /

home/tobrien/bin ). On Windows, we still use ~ for your home

content. On Windows XP, your home directory is C:\Documents and Settings

\tobrien , on Windows Vista, your home directory is C:\Users\tobrien . from now on

In the beginning, you should be able to understand this path representation and translate it to the corresponding path on your operating system

path.

 

Guess you like

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