Files
ygyx/doc/生产环境/docker/通过yum安装maven.md
2025-11-04 18:08:36 +08:00

15 lines
465 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

安装maven的前提是安装jdk参考《linux jdk安装》
```bash
// 使用配置工具配置第三方epel源仓库
yum-config-manager --add-repo http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo
yum-config-manager --enable epel-apache-maven
// 安装maven
yum install -y apache-maven
// 验证maven验证是否为Oracle字样默认有版本输出
mvn -version
//最后确认下yum源地址有没被误改
yum repolist
```