标签:name load cal lib 查看 port etc 安装 runtime
Ubuntu安装Maven
http://maven.apache.org/download.cgi
找到Link列下的“apache-maven-3.5.4-bin.tar.gz“进行下载。
sudo tar zxvf apache-maven-3.5.4-bin.tar.gz -C /opt
sudo vim /etc/profile
source /etc/profile
# 配置maven
export M2_HOME=/opt/apache-maven-3.5.4
export CLASSPATH=$CLASSPATH:$M2_HOME/lib
export PATH=$PATH:$M2_HOME/bin
# mvn -v
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-18T02:33:14+08:00)
Maven home: /opt/apache-maven-3.5.4
Java version: 10.0.1, vendor: Oracle Corporation, runtime: /usr/local/java/jdk-10.0.1
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-36-generic", arch: "amd64", family: "unix"
标签:name load cal lib 查看 port etc 安装 runtime
原文地址:https://www.cnblogs.com/jiqing9006/p/9863942.html