一、异常
使用 Maven 编译工程时出现该异常
[ERROR] Non-resolvable parent POM: Failure to find com.xl:sys-parent:pom:1.0.0-SNAPSHOT in <url> was cached in the local repository,
resolution will not be reattempted until the update interval of wonbox has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM
二、方案
此因 parent.relativePath 出错,可用 <relativePath/> 指定正确的父 pom 路径,默认为../pom.xml
<parent>
<groupId>com.xl</groupId>
<artifactId>sys-parent</artifactId>
<version>1.0.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>