📜  找不到命令 mvn - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:46.642000             🧑  作者: Mango

代码示例1
#set JAVA_HOME
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home
export JAVA_HOME


M2_HOME=/usr/local/apache-maven/apache-maven-3.1.1
export M2_HOME

PATH=$PATH:$JAVA_HOME/bin:$M2_HOME/bin
export PATH