---
title: "yum安装maven2"
author: "fireinwind"
date: "2014-12-10T15:21:54Z"
tags: []
categories: ["开源软件"]
slug: "yum-maven2"
draft: false
lastmod: "2014-12-10T15:21:54Z"
id: 2164850
url: "https://fireinwind.iteye.com/blog/2164850"
---

## yum安装maven2

 (2012-08-09 21:27:00)

[![](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)转载▼]()

标签： 

### [杂谈](http://search.sina.com.cn/?c=blog&q=%D4%D3%CC%B8&by=tag)

 

[http://stackoverflow.com/questions/6298865/how-to-install-maven-into-red-hat-linux-enterprise-addition-6](http://stackoverflow.com/questions/6298865/how-to-install-maven-into-red-hat-linux-enterprise-addition-6)

注意是安装maven2不是maven

wget [http://www.jpackage.org/jpackage50.repo](http://www.jpackage.org/jpackage50.repo)  
yum install maven2

 

另外一个源安装maven3, 命令同样是yum install -y maven2:

# Note: Replaced $releasever with 6Server since SL's "6.2" doesn't work

\[epel-apache-maven]  
name=maven from apache foundation.  
baseurl=http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-6Server/$basearch/  
enabled=1  
skip\_if\_unavailable=1  
gpgcheck=0

\[epel-apache-maven-source]  
name=maven from apache foundation. - Source  
baseurl=http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-6Server/SRPMS  
enabled=0  
skip\_if\_unavailable=1  
gpgcheck=0