Maven - Non-resolvable parent POM: Failure to find xx:xx:pom

襲冷發表於2018-05-18

一、異常

    使用 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>




相關文章