不管是否指定profile(mvn -P xxx),repository都不发生变化,大概率是因为在.m2下的setting.xml中有类似如下设置

  <mirrors> 
    <mirror>
      <id>z_mirrors</id>
      <mirrorOf>*,!releases,!snapshots</mirrorOf>
      <url>https://repo.huaweicloud.com/repository/maven/</url>
    </mirror>
  </mirrors>
*,!repo1 = everything except repo1

将这段注释掉,即可,如果需要,后续再恢复

相关文章:

  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2022-02-18
  • 2021-07-06
  • 2021-11-14
  • 2021-11-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-02-07
  • 2021-08-10
  • 2022-12-23
相关资源
相似解决方案