The project com.xx.xx has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact co

Execute mvn cleanthe command and find an error exception, the content is as follows

The project com.xx.xx  has 1 error [ERROR]     Non-resolvable parent POM: Could not find artifact com.xx.xx and 'parent.relativePath' points at wrong local POM @ line x, column x.

Checked the POM file where the wrong module is located, and found that there is no relativePath in the current parent dependency, and analyzed that the parent pom of the pom file skipped the previous layer. Use the relative path ../../to find the correct relative path, try again, success!

<parent>
    <artifactId>boot</artifactId>
    <groupId>com.sb.boot</groupId>
    <version>1.0-SNAPSHOT</version>
    <relativePath>../../pom.xml</relativePath>
</parent>

Guess you like

Origin blog.csdn.net/ximaiyao1984/article/details/132623282