Basic introduction and use Maven

 

1. Maven package Download https://maven.apache.org/download.cgi 

     Maven environment variable configuration MAVEN_HOME = D: \ develop \ apache-maven-3.6.1

         path: The original of other stuff;% MAVEN_HOME% \ bin;

     Enter the environment under Verify OK CMD: mvn -v

 

2. settings.xml default path that the local repository:. $ {User.home} / m2 / repository

  Set up your own local repository path: <localRepository> D: / develop / m2 / repository </ localRepository>

       Companies often equipped with a remote repository (also called PW); central warehouse placed almost all open source packages Jar

       Local warehouse ----> remote repository ----> Central warehouse

 

3. maven project directory structure

 

 

Guess you like

Origin www.cnblogs.com/yangw/p/11545103.html