[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.pec.retail:xxx:x.x.x-RELEASE: Failure to find com.x.x:xxx:pom:x.x.x-RELEASE in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 5, column 13
报错信息:在处理Pom时发生了错误
无法解析父POM:xxx:x.x.x-RELEASE:找不到com.x.x:xxx:POM:x.x.x-RELEASEhttps://repo.maven.apache.org/maven2已缓存在本地存储库中,在经过中心的更新间隔或强制更新并且“parent.relativePath”指向错误的本地POM
此报错解决方法
-
查看Maven设置
点击File->Setting搜索Maven,点入以下页面,查看Maven的路径是否正确,若不正确更改为正确路径
选择正确的Maven路径进行加载,此时会加载pom下载项目maven
-
比对路径是否正确
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>retail-framework-parent</artifactId>
<groupId>com.pec.retail</groupId>
<version>1.2.6-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>retail-taskc-mobile-service</artifactId>
<description>手机端任务中心</description>
<dependencies>
<dependency>
<groupId>xxx</groupId>
<artifactId>xxx</artifactId>
<version>xxx</version>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
这个为整个的xml文件格式,注意标签中groupId的路径问题如果路径与配置中的不同注意修改
-
版本问题
某个依赖未给版本号, 导致读入依赖配置时, 不能正常匹配依赖版本, 导致报错
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'build.plugins.plugin.version' for org.springframework.boot:spring-boot-maven-plugin is missing. @ line 79, column 21
文章来源:https://www.toymoban.com/news/detail-709495.html
文章来源地址https://www.toymoban.com/news/detail-709495.html
到了这里,关于IDEA报错:[ERROR] Some problems were encountered while processing the POMs的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!