Maven入门

本文详细介绍了Maven的安装、环境变量配置,包括修改settings.xml设置阿里云镜像仓库,以及如何在IDEA中集成Maven并创建项目。通过这些步骤,确保Maven能够顺利用于Java开发。
摘要由CSDN通过智能技术生成

Maven入门

Maven的安装和环境配置步骤

Maven下载
目前Maven3.9.1要求JDK1.8或以上都可以,如JDK满足要求就可以直接在官网:https://maven.apache.org/download.cgi 中下载即可 。在这里插入图片描述 如果是linux或mac系统下载第一个apache-maven-3.9.1-bin.tar.gz,windows系统直接点击框选的第二个apache-maven-3.9.1-bin.zip个链接下载。以windows为例:下载完成之后会有一个压缩包,然后解压到D盘(具体情况根据个人来定),到了这时候maven已经下载完成。在这里插入图片描述

Maven的环境变量配置

直接右键此电脑然后点属性进入高级系统设置来配置环境变量
在这里插入图片描述接下来就是新建一个系统变量变量名:MAVEN_HOME,变量值就是自己下载后解压的maven文件夹地址,也可以点击浏览文件来快速定位文件位置。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Apache Maven What is it? ----------- Maven is a software project management and comprehension tool. Based on the concept of a Project Object Model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information. Documentation ------------- The most up-to-date documentation can be found at http://maven.apache.org/. Release Notes ------------- The full list of changes can be found at http://maven.apache.org/release-notes.html. System Requirements ------------------- JDK: 1.7 or above (this is to execute Maven - it still allows you to build against 1.3 and prior JDK's). Memory: No minimum requirement. Disk: Approximately 10MB is required for the Maven installation itself. In addition to that, additional disk space will be used for your local Maven repository. The size of your local repository will vary depending on usage but expect at least 500MB. Operating System: Windows: Windows 2000 or above. Unix based systems (Linux, Solaris and Mac OS X) and others: No minimum requirement. Installing Maven ---------------- 1) Unpack the archive where you would like to store the binaries, eg: Unix-based operating systems (Linux, Solaris and Mac OS X) tar zxvf apache-maven-3.x.y.tar.gz Windows unzip apache-maven-3.x.y.zip 2) A directory called "apache-maven-3.x.y" will be created. 3) Add the bin directory to your PATH, eg: Unix-based operating systems (Linux, Solaris and Mac OS X) export PATH=/usr/local/apache-maven-3.x.y/bin:$PATH Windows set PATH="c:\program files\apache-maven-3.x.y\bin";%PATH% 4) Make sure JAVA_HOME is set to the location of your JDK 5) Run "mvn --version" to verify that it is correctly installed. For complete documentation, see http://maven.apache.org/download.html#Installation Licensing --------- Please see the file called LICENSE.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值