2023-08-27 11:14:30 +00:00
|
|
|
|
|
|
|
```shell
|
|
|
|
|
|
|
|
# 최신버전 확인
|
|
|
|
https://archive.apache.org/dist/maven/maven-3/
|
|
|
|
|
|
|
|
https://archive.apache.org/dist/maven/maven-3/3.0.4/binaries/apache-maven-3.0.4-bin.tar.gz
|
|
|
|
|
|
|
|
# 설치 시작
|
|
|
|
# 폴더 생성
|
|
|
|
mkdir apache-maven
|
|
|
|
|
|
|
|
# maven 다운로드
|
|
|
|
wget https://archive.apache.org/dist/maven/maven-3/3.0.4/binaries/apache-maven-3.0.4-bin.tar.gz -p /root/apache-maven/
|
|
|
|
|
|
|
|
# 압축푹기
|
2024-03-29 08:36:47 +00:00
|
|
|
tar -xvf apache-maven-3.0.4-bin.tar.gz
|
2023-08-27 11:14:30 +00:00
|
|
|
|
|
|
|
# 환경변수 등록
|
|
|
|
cd
|
|
|
|
nano .bashrc
|
|
|
|
export MAVEN_HOME=/root/apache-maven/apache-maven-3.0.4
|
|
|
|
export PATH=$PATH:$MAVEN_HOME/bin
|
|
|
|
|
|
|
|
source .bashrc
|
|
|
|
|
|
|
|
# code-server 재시작
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|