Maven Learning Tutorial (i)--environment construction

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.