六祎-maven设置为自己的仓库地址

第一步:下载maven,解压,配置自己的仓库地址

maven
          -conf
          -settings.xml
找到settings.xml,打开,找到第 55 

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <!-- 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:\Development tools\Java\.m2\repos</localRepository>

  <!-- interactiveMode
   | This will determine whether maven prompts you when it needs input. If set to false,
   | maven will use a sensible default value, perhaps based on some other setting, for
   | the parameter in question.
   |
   | Default: true
  <interactiveMode>true</interactiveMode>
  -->

posted @ 2022-04-26 00:55  你好,Alf  阅读(171)  评论(0)    收藏  举报