PHP技术,网站开发,PHP,PHP学习,Python学习,PHP开发,人工智能,大数据服务

PHP » 服务器 » mac 下 mvn command not found

mac 下 mvn command not found

此文被围观138日期: 2021-07-25 分类 : 服务器  标签:  ··

mvn command not found,表示配置变量出问题了,mac下IDEA可以做出如下改动


vim ~/.bash_profile

增加java和mvn路径

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home 

export JAVA_HOME 

IDEA_MAVEN=/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3 

export IDEA_MAVEN export PATH=${PATH}:${JAVA_HOME}/bin:${IDEA_MAVEN}/bin


source ~/.bash_profile


如果配mvn配置可执行权限

sudo chmod +x /Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/bin/mvn

查看mvn版本号

mvn -v



来源:https://blog.csdn.net/liushuaitong/article/details/103729340

© Copyright 2011-2019 www.adophper.com. All Rights Reserved.
读图网科技 版权所有。蜀ICP备12031064号-1