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

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

执行mvn clean 命令 发现error异常,内容如下

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.

查了下出错的module所在的POM文件,发现当前parent依赖中没有relativePath,分析该pom文件的父pom跳过了上一层。使用相对路径../../找到正确的相对路径,再试,成功!

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


相关文章
|
Java Maven
关于 Could not find artifact ...:pom:1.0-SNAPSHOT 的问题!
关于 Could not find artifact ...:pom:1.0-SNAPSHOT 的问题!
2705 0
关于 Could not find artifact ...:pom:1.0-SNAPSHOT 的问题!
|
Java Maven
Maven3 package时报 &#39;version&#39; contains an expression but should be a constant
父pom文件: 4.0.0 com.wey WEY ${com.wey.version} pom 子Module 4.0.0 com.wey WEY ${com.wey.version} pom package web工程时报 'version' contains an expression but should be a constant这个错误提示,这是因为Maven3 不允许出现version为非常量值的情况。
9381 0
Failed to execute goal maven-resources-plugin:3.2.0:resources Input length = 1 -> [Help 1]
Failed to execute goal maven-resources-plugin:3.2.0:resources Input length = 1 -> [Help 1]
116 0
|
缓存 Java Maven
maven出现Dependency not found 和Could not find artifact的解决方法(已解决)
maven出现Dependency not found 和Could not find artifact的解决方法(已解决)
2972 0
|
Java Maven
Non-resolvable parent POM Failure to find was cached in the local repository ‘parent.relativePath‘
Non-resolvable parent POM Failure to find was cached in the local repository ‘parent.relativePath‘
430 0
No plugin found for prefix ‘doclint‘ in the current project
No plugin found for prefix ‘doclint‘ in the current project
130 0
mvn clean package -Dmaven.test.skip=true 报错:[ERROR] Unknown lifecycle phase “.test.skip=true“.
mvn clean package -Dmaven.test.skip=true 报错:[ERROR] Unknown lifecycle phase “.test.skip=true“.
1001 0
mvn clean package -Dmaven.test.skip=true 报错:[ERROR] Unknown lifecycle phase “.test.skip=true“.
|
Java Maven
[ERROR] Failed to execute goal on project springcloud: Could not resolve dependencies for project co
[ERROR] Failed to execute goal on project springcloud: Could not resolve dependencies for project co
777 0
[ERROR] Failed to execute goal on project springcloud: Could not resolve dependencies for project co
|
Java Maven
Maven - Could not find artifact
Maven - Could not find artifact
999 0
|
存储 Java Maven
Maven - Artifact upload failed. Repository with ID=&#39;XXX&#39; does not allow updating artifacts.
Maven - Artifact upload failed. Repository with ID=&#39;XXX&#39; does not allow updating artifacts.
149 0