Maven is a Java tool, so you must haveJavainstalled in order to proceed. More precisely, you need a Java Development Kit (JDK), the Java Runtime Environment (JRE) is not sufficient.
Additional optional installation steps are listed after the platform specific instructions.
Windows 2000/XP
- Unzip the distribution archive, i.e.apache-maven-2.2.1-bin.zipto the directory you wish to install Maven 2.2.1. These instructions assume you choseC:/Program Files/Apache Software Foundation. The subdirectoryapache-maven-2.2.1will be created from the archive.
- Add theM2_HOMEenvironment variable by opening up the system properties (WinKey + Pause), selecting the "Advanced" tab, and the "Environment Variables" button, then adding theM2_HOMEvariable in the user variables with the valueC:/Program Files/Apache Software Foundation/apache-maven-2.2.1. Be sure to omit any quotation marks around the path even if it contains spaces.Note: For Maven < 2.0.9, also be sure that theM2_HOMEdoesn't have a '/' as last character.
- In the same dialog, add theM2environment variable in the user variables with the value%M2_HOME%/bin.
-
Optional: In the same dialog, add theMAVEN_OPTSenvironment variable in the user variables to specify JVM properties, e.g. the value-Xms256m -Xmx512m. This environment variable can be used to supply extra options to Maven.
- In the same dialog, update/create thePathenvironment variable in the user variables and prepend the value%M2%to add Maven available in the command line.
- In the same dialog, make sure thatJAVA_HOMEexists in your user variables or in the system variables and it is set to the location of your JDK, e.g.C:/Program Files/Java/jdk1.5.0_02and that%JAVA_HOME%/binis in yourPathenvironment variable.
- Open anewcommand prompt (Winkey + R then typecmd) and runmvn --versionto verify that it is correctly installed.
分享到:
相关推荐
maven的安装与配置; maven的安装与配置 ;maven的安装与配置
maven安装与配置
Maven的安装与环境变量的配置
Maven的安装、配置及使用入门
Maven 安装与配置(csdn)————程序
Maven采用了一种被称之为project object model (POM)概念来管理项目,所有的项目配置信息都被定义在一个叫做POM.xml的文件中,通过该文件,Maven可以管理项目的整个声明周期,包括编 译,构建,测试,发布,报告等等...
这里面有Maven的下载路径及环境配置的步骤等等,为之后做项目blog做好铺垫。如果和我有相同爱好的可以下载看看。
Maven安装配置说明,非常详细的说明。。。。。。。。。
maven的安装配置手册 ,权威指南 。
Maven安装配置外加Myeclipse上完美运行图解_______自己总结,免费共享
maven 安装 环境变量配置 步骤简单清晰 一看就会 不用烦恼
- [1.3 Maven安装和配置](#13-Maven安装和配置) - [二、基于IDEA的Maven工程创建](#二基于IDEA的Maven工程创建) - [2.1梳理Maven工程GAVP属性](#21梳理Maven工程GAVP属性) - [2.2 Idea构建Maven JavaSE工程](#22-...
maven安装与配置maven安装与配置.docxmaven安装与配置.docx
maven配置文件配置国内阿里云镜像
Maven安装配置
课程内容从Maven的基本概念讲起,详细介绍了Maven的安装过程、环境配置、以及如何通过Maven进行项目构建和管理。我们不仅涵盖了Windows、Linux和macOS等主流操作系统下的Maven安装步骤,还提供了丰富的实践指导,...
详细的maven教程。适合初学者对于maven的安装配置以及常用命令简介
maven安装的文档,描述了maven的安装,环境变量配置,myeclipse配置。简单易懂,完整实用。
maven安装以及eclipse配置maven
Maven安装与配置,Idea配置Maven。 一篇文章带你快速了解!