IDEA报错:[ERROR] Some problems were encountered while processing the POMs

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

此报错解决方法

  • 查看Maven设置

点击File->Setting搜索Maven,点入以下页面,查看Maven的路径是否正确,若不正确更改为正确路径

image-20230804090138934

image-20230804152428778

选择正确的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

image-20230804154424285

image-20230804154447753

  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

lanksi

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值