Apache maven is a popular, common project management tool
The main role of MAVEN
|--1. Sub-module Management project
|--2. Sub-warehouse Management dependencies
MAVEN uses central warehouses and local warehouses to manage project dependencies
|--maven automatically downloads the specific dependent jar package from the central repository, and then adds it to the local repository for use by the project.
|--maven can configure the local repository to use resources in the local repository if dependencies exist in the local warehouse during project usage, and if the local warehouse does not have dependencies, it is downloaded from the central warehouse over the network
Apache Official website: www.apache.org
MAVEN Official website: http://maven.apache.org/
Maven Main components
|--Dependency
|--Warehouse
|--life cycle
|--Plug-in
Summary
|--visit our website to download maven
|--Configuring environment variables
|--Configuring the Local Warehouse
1. Visit the official Apache website and find maven on the official homepage
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
2. Open Maven home page to download the latest version (currently the latest version is Maven 3.2.3)
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
3. After the download is a compressed package, unzip the file, the extracted directory structure as follows:
|--Apache-maven-3.2.3:maven root directory
|--Bin: The directory where executables and commands reside
|--Boot:
|--Conf:maven Manage project configuration files in the same directory
|--the directory where the library files are running since Lib:maven
4. Configure Environment variables
In the system's PATH environment variable, configure the Apache-maven-3.2.3/bin directory
Open command-line window; execute: mvn-version; Check environment variables are correct
After executing mvn-version, the following window appears, stating that the MAVEN deployment is complete correctly.
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
Maven Learning Tutorial (i)--environment construction