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 的问题!
2833 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]
135 0
|
缓存 Java Maven
maven出现Dependency not found 和Could not find artifact的解决方法(已解决)
maven出现Dependency not found 和Could not find artifact的解决方法(已解决)
3863 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‘
532 0
|
Java Maven
Maven打包出现webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
Maven打包出现webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
956 0
No plugin found for prefix ‘doclint‘ in the current project
No plugin found for prefix ‘doclint‘ in the current project
153 0
|
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
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

热门文章

最新文章