linux - Solve the problem of maven removal and reinstallation

1 The maven and maven2 that come with the linux virtual machine, but the version is too low, first search for the directories of the two versions, find them in cd /etc/, and delete them through the rm -rf command;

cd /usr/share/ delete the corresponding maven in it,

2 Then configure environment variables through vi ./.bashrc

export MAVEN_HOME=/root/apache-maven-3.5.0

export PATH= M A V E N _ H O M E / b i n : {MAVEN\_HOME}/bin: MAVEN_HOME/bin:{PATH}

export JAVA_8_HOME=/usr/lib/jvm/jdk1.8.0_71

export JAVA_7_HOME=/usr/lib/jvm/jdk1.8.0_71

export JAVA_6_HOME=/usr/lib/jvm/jdk1.8.0_71

export JRE_HOME=/usr/lib/jvm/jdk1.8.0_71/jre

Guess you like

Origin blog.csdn.net/m0_54853503/article/details/123971447