【1】Maven安装
来源:互联网 发布:plc编程基础知识 编辑:程序博客网 时间:2024/06/17 18:37
Maven是什么请google自行补脑!
运行环境要求,官方网站有明确标注:http://maven.apache.org/download.cgi
Maven 3.2 requires JDK 1.6 or above, while Maven 3.0/3.1 requires JDK 1.5 or above (this is to execute Maven - it still allows you to build against 1.3 and prior JDK's)
我们这里使用最新版本3.2.1,JDK为1.7,JDK安装后环境变量配置
解压后我们进行Maven的环境变量配置
M2_HOME = Maven所在的路径
PATH= %M2_HOME%\bin bin里面就是maven提供给我们的工具
我们通过命令行测试一下是否安装成功,执行 mvn -v 如果看见输出版本等信息就证明配置成功!
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
我们先对其做基本的配置工作,默认maven的本地仓库地址需要修改
找到conf下面的settings.xml文件,对本地仓库位置修改,去掉注释内容,修改本地仓库地址。请按照自己电脑实际情况修改。
补充:默认是连接的maven的中央仓库,比较慢,国内比较好的中央仓库可以选用 开源中国的,在setttings加入仓库镜像地址
<mirrors><!-- mirror | Specifies a repository mirror site to use instead of a given repository. The repository that | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used | for inheritance and direct lookup purposes, and must be unique across the set of mirrors. | --><mirror><id>nexus-osc</id><mirrorOf>*</mirrorOf><name>Nexus osc</name><url>http://maven.oschina.net/content/groups/public/</url></mirror></mirrors>
- (1)Maven安装配置
- Maven-1:下载&安装
- 【1】Maven安装
- Maven学习1:eclipse安装maven
- maven学习系列1----maven安装
- maven(1)------linux下maven安装
- 1、Maven的下载,安装
- maven学习1-环境安装
- Maven(1)-下载与安装
- Maven入门1-下载安装
- MAVEN入门----安装MAVEN
- Maven(二)安装Maven
- 【Maven】2、Maven安装
- Maven--安装Maven
- maven 笔记-maven安装
- 安装maven
- maven安装
- Maven安装
- 100个windows平台C++开发错误之数组
- pySerial -- Python的串口通讯模块
- NOJ [1293] Porter Cai
- 年龄大了还可以学习编程吗
- oracle归档日志
- 【1】Maven安装
- 【LeetCode】Climbing Stairs
- Add Two Numbers
- Color Me Less
- oracle去掉字符串中所有指定字符
- DOC转PDF的vbs脚本
- KinectBridgeWithOpenCVBasics D2D C++ Sample
- 100个windows平台C++开发错误之Warning
- 精益人力