jdk与maven配置

jdk1.8.0 :

https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

export JAVA_HOME=/usr/local/src/jdk/jdk1.8

export JRE_HOME=/usr/local/src/jdk/jdk1.8/jre

export PATH=$PATH:$JAVA_HOME/bin

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

maven:

下载:https://maven.apache.org/download.cgi

mkdir -p /usr/local/maven

tar xf apache-maven-3.6.0-bin.tar.gz -C /usr/local/

mv apache-maven-3.6.0/ /usr/local/

vim /etc/profilevim /etc/profile

添加:

#maven

MAVEN_HOME=/usr/local/maven3.6

export MAVEN_HOME

export PATH=${PATH}:${MAVEN_HOME}/bin

source /etc/profile

posted @ 2019-04-03 10:34  自在1990  阅读(1401)  评论(0编辑  收藏  举报