标签:nbsp dex etc str network strong port microsoft apach
MAVEN基于JDK安装,先安装JDK,再安装MAVEN
Step1:下载JDK,上传到目录下,解压
https://www.oracle.com/technetwork/java/javase/overview/index.html
Step2:编辑~/.bash_profile文件或/etc/profile文件配置环境变量
export JAVA_HOME=安装路径/jdk1.8.0_202
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
Step3:刷新.bash_profile文件,使文件生效
source ~/.bash_profile
java -version //检查版本
安装MAVEN环境
step1:https://jenkins.io/download/下载
step2:解压,写入 ~/.bash_profile
export MAVEN_HOME=/安装目录/apache-maven-3.6.3
export MAVEN_HOME
export PATH=$PATH:$MAVEN_HOME/bin
Step3:刷新.bash_profile文件,使文件生效
source ~/.bash_profile
mvn -version //检查版本
标签:nbsp dex etc str network strong port microsoft apach
原文地址:https://www.cnblogs.com/krystal-LA-zx/p/13038612.html