1.本地仓库和apache-mavenbin.zip的下载与解压

<1.apache-mavenbin.zip下载网址

http://maven.apache.org/download.cgi

2.Maven环境变量配置

 <1.MAVEN_HOME

 <2.PATH

3.环境搭建验证

 

 4自定义数据仓库的位置(apache-maven.setting.xml)的配置

<!-- 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>D:\java\repository</localRepository>

 

posted on 2019-03-26 22:00  忆夏KhaZix  阅读(241)  评论(0编辑  收藏  举报