wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
yum -y install apache-maven

查找maven安装路径

 1)查找包路径

rpm -qa|grep apache-maven

2)根据包路径查找安装目录

rpm -ql apache-maven-3.5.2-1.el7.noarch

在搜索结果中就有maven的安装目录。

配置文件路径

/etc/maven/settings.xml

相关文章:

  • 2022-12-23
  • 2021-06-12
  • 2021-07-22
  • 2021-08-15
  • 2021-12-25
  • 2021-11-19
  • 2021-10-13
  • 2018-07-26
猜你喜欢
  • 2021-12-04
  • 2021-10-02
  • 2021-09-24
  • 2021-10-21
  • 2022-01-04
  • 2022-12-23
相关资源
相似解决方案