-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# maven | ||
- [maven-linux安装配置环境变量并查看版本信息](./maven-linux安装环境变量.md) | ||
- [maven打包命令](./maven打包命令.md) | ||
- [maven高版本使用http协议仓库](./maven高版本使用http协议仓库.md) | ||
- [使用Maven下载源代码](./use-maven-dl-src.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# maven-linux安装配置环境变量并查看版本信息 | ||
|
||
## 编辑`vim ~/.bashrc` | ||
|
||
```shell | ||
vim ~/.bashrc | ||
# 输入以下内容 | ||
export MAVEN_HOME=/opt/apache-maven-3.6.3 | ||
export PATH=$PATH:$MAVEN_HOME/bin | ||
source ~/.bashrc | ||
## 查看路径 | ||
which mvn | ||
``` | ||
|
||
## 查看版本信息 | ||
|
||
```shell | ||
mvn -v | ||
``` | ||
|
||
## 查看生效的设置 | ||
|
||
```shell | ||
mvn help:effective-settings | ||
``` |