Skip to content

Commit e8e30f8

Browse files
author
Songyu
committed
更新文章
1 parent c0e50e4 commit e8e30f8

File tree

8 files changed

+33
-0
lines changed

8 files changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
layout: post
3+
title: "Windwos安装配置maven"
4+
date: 2020-03-27 13:51:13 +0800
5+
tags: 杂谈
6+
description:
7+
---
8+
9+
最近开始java开发,开始还是把jar包用拷贝得方式,放到项目得目录下,来进行引用,这种办法真的很麻烦,于是开始使用maven,由于开发使用的都是Windows系统,就先记录一下在Windows下的maven安装和配置
10+
11+
对于jdk的安装就不介绍了,这个没什么
12+
13+
### 安装
14+
15+
1. 访问官网进行[下载]
16+
![](/images/2020-03-27-1.jpg)
17+
18+
2. 解压到本地任意目录,进行环境变量配置,配置**M2_HOME****MAVEN_HOME**两个变量,并加入到path中
19+
![](/images/2020-03-27-2.jpg)
20+
![](/images/2020-03-27-3.jpg)
21+
![](/images/2020-03-27-4.jpg)
22+
23+
3. 配置好后,在命令行中进行查看,是否成功
24+
![](/images/2020-03-27-5.jpg)
25+
26+
27+
### 配置
28+
29+
1. 修改本地放置仓库,默认情况下是**${user.home}/.m2/repository**,如果修改的话,在安装目录下的/conf/settings.xml进行修改
30+
![](/images/2020-03-27-6.jpg)
31+
32+
2. 修改远程仓库地址,默认的远程仓库在国外,由于某些原因,下载速度很慢,推荐修改为阿里云镜像
33+
![](/images/2020-03-27-7.jpg)

images/2020-03-27-1.jpg

122 KB
Loading

images/2020-03-27-2.jpg

36.4 KB
Loading

images/2020-03-27-3.jpg

11.7 KB
Loading

images/2020-03-27-4.jpg

14.6 KB
Loading

images/2020-03-27-5.jpg

7.04 KB
Loading

images/2020-03-27-6.jpg

21.1 KB
Loading

images/2020-03-27-7.jpg

45.8 KB
Loading

0 commit comments

Comments
 (0)