Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
请问安装JAVA JDK MAVEN的环境变量问题?
Apps Section
1068
views ·
0
replies ·
To
floor
Go
zhangfei007
deepin
2018-05-04 05:27
Author
//打开环境变量的配置文件
vim /etc/profile
[url=]
[/url]
//新增行MAVEN_HOME,等于号后面是maven解压的文件夹地址
export MAVEN_HOME=/usr/local/maven/apache-maven-3.5.2
//找到PATH行,追加$MAVEN_HOME/bin
例如
PATH=$JAVA_HOME/bin:
$MAVEN_HOME/bin
PATH
//重新刷新配置文件
source /etc/profile
换个shell 命令就不生效了。
重启系统就可以了。
Reply
Like 0
Favorite
View the author
All Replies
No replies yet
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
How to fix grub boot menu that has disappeared?
Looking Deepin ci 25.2.0 Developer/Unstable repositories
Popular Events
More
vim /etc/profile
//新增行MAVEN_HOME,等于号后面是maven解压的文件夹地址
export MAVEN_HOME=/usr/local/maven/apache-maven-3.5.2
//找到PATH行,追加$MAVEN_HOME/bin
例如
PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin
//重新刷新配置文件
source /etc/profile
换个shell 命令就不生效了。
重启系统就可以了。