|
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)