- Spring MVC Beginner’s Guide
- Amuthan G
- 263字
- 2021-07-16 11:25:38
Time for action – installing the Maven build tool
Many build tools are available for building a Java project. We are going to use Maven 3.2.1 as our build tool. Let's take a look at how we can install Maven:
- Go to Maven's download page by entering the following URL on your browser:
- Click on the apache-maven-3.2.1-bin.zip download link, and start the download.
- Once the download is finished, go to the downloaded directory and extract the
.zip
file into a convenient directory of your choice. - Now we need to create one more environment variable, called
M2_HOME
, in a way that is similar to the way in which we createdJAVA_HOME
. Enter the extracted Maven zip directory's path as the value for theM2_HOME
environment variable. - Create one more environment variable, called
M2
, with the value%M2_HOME%\bin
, as shown in the following screenshot:Setting the M2 environment variable
- Finally append the
M2
variable to thePATH
environment variable as well by simply appending the;%M2%
text to thePATH
variable's value.
Now we have installed the Maven build tool in our computer. To verify whether our installation has been carried out correctly, we need to follow steps that are similar to the Java installation verification. Open a new command window, type mvn –version
, and press Enter; you will see the following details of the Maven version:
C:\>mvn -version Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T12:37:52-05:00) Maven home: C:\Program Files\apache-maven-3.2.1 Java version: 1.7.0_51, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.7.0_51\jre Default locale: en_SG, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
推薦閱讀
- 從零開始學Hadoop大數據分析(視頻教學版)
- Visual Studio 2015 Cookbook(Second Edition)
- 數據結構與算法(C語言版)
- 醫療大數據挖掘與可視化
- Learn Unity ML-Agents:Fundamentals of Unity Machine Learning
- Sybase數據庫在UNIX、Windows上的實施和管理
- 數據庫技術及應用教程
- Learning Proxmox VE
- 云數據中心網絡與SDN:技術架構與實現
- Solaris操作系統原理實驗教程
- Mastering LOB Development for Silverlight 5:A Case Study in Action
- 區塊鏈+:落地場景與應用實戰
- 機器學習:實用案例解析
- Hands-On System Programming with C++
- 實現領域驅動設計