1, the configuration of the java environment variable file location: /Users/lucax/.bash_profile
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/
CLASSPAHT=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
PATH=$JAVA_HOME/bin:$PATH:
export JAVA_HOME
export CLASSPATH
export PATH
source ~ / .bash_profile (reset variable files, this is not to say, the configuration of the terminal environment variable should execute the sentence)
export M2_HOME = "path to your local maven"
export PATH="$M2_HOME/bin:$PATH"
Input source ~ / .bash_profile so that the environment variables to take effect.
Enter mvn -v view Maven whether the installation was successful.
Reference: https://blog.csdn.net/PT1993/article/details/85601270
(There is a hole, do not know why, to re-close off the terminal, and then open a, enter the command was successful)
3. Create loaded selenium maven library