centos6.x下にmaven CentOSをインストールMavenを自動インストールする方法
centos6.x下にmavenをインストールする
1.mavenパッケージのダウンロード
まずは公式サイトからhttp://maven.apache.org/最新版Mavenをダウンロードします。
本人ダウンロードパッケージはapache-maven-3.2.1-bin.tar.gz

tar-zxvf apache-maven-3.2.1-binを実行する.tar.gz
下図は減圧成功ページ
減圧したファイルを/optディレクトリの下に置く
sudo mv apache-maven-3.2.1/optの実行

ln-s apache-maven-3.2.1 apache-mavenの実行

source/etc/profileの実行はprofileファイルが有効です
mvn–vの実行

CentOS自動インストールMaven
1.Mavenの自動ダウンロード
2.環境変数の設定
3.mirrorの構成
インストール:mavenをダウンロードします。rarはreadmeに従って実行すればよい
mirror構成:
alimaven
aliyun maven
http://maven.aliyun.com/nexus/content/groups/public/
central
central
Maven Repository Switchboard
http://repo1.maven.org/maven2/
central
repo2
central
Human Readable Name for this Mirror.
http://repo2.maven.org/maven2/
ibiblio
central
Human Readable Name for this Mirror.
http://mirrors.ibiblio.org/pub/mirrors/maven2/
jboss-public-repository-group
central
JBoss Public Repository Group
http://repository.jboss.org/nexus/content/groups/public
maven.net.cn
oneof the central mirrors in china
http://maven.net.cn/content/groups/public/
central
alimaven
aliyun maven
http://maven.aliyun.com/nexus/content/groups/public/
central
central
Maven Repository Switchboard
http://repo1.maven.org/maven2/
central
repo2
central
Human Readable Name for this Mirror.
http://repo2.maven.org/maven2/
ibiblio
central
Human Readable Name for this Mirror.
http://mirrors.ibiblio.org/pub/mirrors/maven2/
jboss-public-repository-group
central
JBoss Public Repository Group
http://repository.jboss.org/nexus/content/groups/public
<\/mirrors>maven.net.cn
oneof the central mirrors in china