1.正确安装Maven

2.修改

[liumeng@localhost conf]$ vim /etc/maven/maven/conf/settings.xml    # 修改该文件
# 将下面的<localRepository>/path/to/local/repo</localRepository>粘贴到外面,不要注释
  <!-- localRepository
   | The path to the local repository maven will use to store artifacts.
   |
   | Default: ${user.home}/.m2/repository
  <localRepository>/path/to/local/repo</localRepository>
  -->


<localRepository>/home/test</localRepository>

Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐