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的路径是否正确,若不正确更改为正确路径

IDEA报错:[ERROR] Some problems were encountered while processing the POMs,intellij-idea,java,maven,spring,后端,spring boot

IDEA报错:[ERROR] Some problems were encountered while processing the POMs,intellij-idea,java,maven,spring,后端,spring boot

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

IDEA报错:[ERROR] Some problems were encountered while processing the POMs,intellij-idea,java,maven,spring,后端,spring boot

IDEA报错:[ERROR] Some problems were encountered while processing the POMs,intellij-idea,java,maven,spring,后端,spring boot文章来源地址https://www.toymoban.com/news/detail-709495.html

到了这里,关于IDEA报错:[ERROR] Some problems were encountered while processing the POMs的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包