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 的问题!
2836 0
关于 Could not find artifact ...:pom:1.0-SNAPSHOT 的问题!
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]
137 0
|
缓存 Java Maven
maven出现Dependency not found 和Could not find artifact的解决方法(已解决)
maven出现Dependency not found 和Could not find artifact的解决方法(已解决)
3893 0
No plugin found for prefix ‘doclint‘ in the current project
No plugin found for prefix ‘doclint‘ in the current project
154 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“.
1113 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
790 0
[ERROR] Failed to execute goal on project springcloud: Could not resolve dependencies for project co
|
Java Maven Android开发
eclipse maven 报错Could not get the value for parameter encoding for plugin execution default
问题描述:更改默认的maven仓库路径完成后、即存maven项目或者新建maven项目的时候出现如下错误   Could not get the value for parameter encoding for plugin execution default   原因分析:当问题解决后、回...
1885 1
|
Java Maven
Failed during checkstyle execution: Unable to find suppressions file at location: src/checkstyle/checkstyle-suppressions.xml
org.springframework.boot spring-boot-starter-parent 1.3.6.RELEASE   springboot的parent节点配置错误,则会报下面的错   ...
3525 0
|
Java Maven
Maven打包时抛出should not point at files within the project directory …异常
版权声明:本文首发 http://asing1elife.com ,转载请注明出处。 https://blog.csdn.net/asing1elife/article/details/82732113 ...
13253 0