当前位置:   article > 正文

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

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
  • 1
  • 2

报错信息:在处理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>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

这个为整个的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
  • 1
  • 2

image-20230804154424285

image-20230804154447753

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/927259
推荐阅读
相关标签
  

闽ICP备14008679号