<parent>
<artifactId>elpis</artifactId>
<groupId>com.aistarfish.elpis</groupId>
<version>1.0.0</version>
</parent>

新增下面设置即可:
<parent>
<artifactId>elpis</artifactId>
<groupId>com.aistarfish.elpis</groupId>
<version>1.0.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>


relativePath 默认值为../pom.xml

查找顺序:relativePath元素中的地址–本地仓库–远程仓库

设定一个空值将始终从仓库中获取,不从本地路径获取,如<relativePath />

如果是本地的mudel,没有上传到远程仓库,此时设置为空值(就是不设置),则不从本地仓库取



相关文章:

  • 2021-07-15
  • 2021-08-21
  • 2021-09-27
  • 2022-12-23
  • 2021-12-16
  • 2021-12-11
  • 2021-07-26
  • 2022-01-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
  • 2021-12-04
相关资源
相似解决方案