1.meaven修改本地仓库地址

第一步:找到 apache-maven-3.8.6-bin\apache-maven-3.8.6\conf
第二步:打开conf中settings.xml修改如下

  1. <settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
  4. <!-- localRepository
  5. | The path to the local repository maven will use to store artifacts.
  6. |
  7. | Default: ${user.home}/.m2/repository
  8. <localRepository>/path/to/local/repo</localRepository>
  9. -->
  10. <localRepository>修改为你想要改的地址</localRepository>
  11. 例如:
  12. <localRepository>E:/Program/Project/Projectjava/reposity</localRepository>