IDEA报错:[ERROR] Some problems were encountered while processing the POMs:
[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
此报错解决方法
点击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