1, environment configuration, or to add a user or system environment variable MAVEN_HOME M2_HOME, to E: \ apache-maven-3.6.3 \
Add in the path E: \ apache-maven-3.6.3 \ bin
2, check whether success: there will enter mvn -v in cmd
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: E:\apache-maven-3.6.3\bin\..
Java version: 10.0.1, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-10.0.1
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
3, commonly used commands
mvn clean cleanup
mvn complie compiling the main program
mvn test test execution
mvn package package
mvn test-complie compile the test program
4. If you need to run the command plug-ins, then, maven will automatically look for from your home directory, if not outside the network will automatically link to download, http: //maven.apache.org/plugins/index.html
Modify the local repository path can be opened \ apache-maven-3.6.3 \ conf \ settings.xml file, and then find localRepository label, <localRepository> / path / to / local / repo </ localRepository> removed from the notes, set their own route of