<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,没有上传到远程仓库,此时设置为空值(就是不设置),则不从本地仓库取