How to deploy a MAVEN project (top)

Source: Internet
Author: User

How to deploy a MAVEN project (above): How to Install a maven (**-bin.zip version) under Windows

Preface:

Listen to a young teacher yesterday, give us the introduction of Maven but said he came down to understand, today have time to test their own!

Learn about the benefits of Maven:

1. Maven can share Java-developed jars between multiple projects "I'm here to see this."

2. Most racks can be obtained from the MAVEN database (Networking required)

Degrees Niang also gave the explanation: degrees Mom told you

MAVEN also requires JDK support and does not install the JDK on Baidu.

Website:

Http://mirror.bit.edu.cn/apache/maven/maven-3/3.3.1/binaries/apache-maven-3.3.1-bin.zip

Installation steps:

1, unzip to a full English path (preferably this)

2. Create a new environment variable:

Variable name

Variable Value

M_home

C:\Program files\maven\apache-maven-3.3.1

Path

Added at the end:%m_home%\bin

3. Open DOS window: Run mvn-version

Success is like this:

4. Add a local repository to Maven [friends using a version controller (GitHub) should be familiar, this is a common jar library in the computer, where all MAVEN projects will be taken]:

A. Find the installation directory /conf/setting.xml and be under administrator privileges

B, editor Setting.xml

1 < Settings > 2  <!-- Specify the path  - 3  < localrepository > </ localrepository > 4  5 </ Settings >

Summary:

Maven installs, as well as the local warehouse configuration, next is to decorate a MAVEN project, and the next blog will describe

  

How to deploy a MAVEN project (top)

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.