首页 > 代码库 > Maven

Maven

入门 Maven install: 

1. 安装jdk,下载Maven包

2.设置环境变量

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

PATH=$JAVA_HOME/bin:$PATH:.

CLASSPATH=JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.

export JAVA_HOME

export PATH

export CLASSPATH

export M2_HOME=/Users/ygshen/c/apache-maven

export PATH=$PATH:$M2_HOME/bin

 

Maven