LoginSignup
1
0

More than 5 years have passed since last update.

Apache Maven のインストール(ソースから)

Last updated at Posted at 2018-06-13

必要があったのでメモ
Java1.7以上がインストール済みのCentOS7.5でやっています

手順

  1. Mavenのバイナリファイルをダウンロードする

    # cd /opt/
    # curl -LkvOf http://ftp.jaist.ac.jp/pub/apache/maven/maven-3/3.6.0/binaries/apache-maven-3.6.0-bin.tar.gz
    
  2. ファイルを展開する

    # tar xzvf apache-maven-3.6.0-bin.tar.gz
    
  3. パスを通す

    # vi /etc/profile
    
    
    (省略)
    
    export PATH=/opt/apache-maven-3.6.0/bin:$PATH
    
  4. sourceコマンドを実行する

    # source /etc/profile
    

確認

以下のコマンドを実行して、バージョンが表示されればOK

# mvn -v

Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-25T03:41:47+09:00)
Maven home: /opt/apache-maven-3.6.0
Java version: 1.8.0_202, vendor: Oracle Corporation, runtime: /usr/java/jdk1.8.0_202-amd64/jre
Default locale: ja_JP, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-957.1.3.el7.x86_64", arch: "amd64", family: "unix"

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0