mac maven project configuration method

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)

 

 Java javac input terminal and responsive to ok
 
 
2, configure maven environment
Download maven package address:  http://maven.apache.org/download.cgi    (binary zip file)
Decompression configuration environment variable

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

https://www.cnblogs.com/dong-dong-dong/p/9565466.html

Guess you like

Origin www.cnblogs.com/kaibindirver/p/11330265.html