当前位置: 首页 > news >正文

[ERROR] Some problems were encountered while processing the POMs

记录一次maven的错误

问题复现:

我在ruoyi-vue-plus项目的ruoyi-modules中新建了一个子项目ruoyi-network-telphonem,然后某一次编译的时候提示SysTenantServiceImpl找不到无参的构造函数,检查了很久都没发现问题,于是我想着删掉本地maven仓库中的org\dromara目录下的所有文件,想着重新编译看看,当我运行maven的install命令时,出现如下错误

D:\devSoftware\jdk17\bin\java.exe -Dmaven.multiModuleProjectDirectory=D:\WorkSp\IdeaSp\sp2\RuoYi-Vue-Plus -Djansi.passthrough=true "-Dmaven.home=D:\devSoftware\IntelliJ IDEA 2023.2.5\plugins\maven\lib\maven3" "-Dclassworlds.conf=D:\devSoftware\IntelliJ IDEA 2023.2.5\plugins\maven\lib\maven3\bin\m2.conf" "-Dmaven.ext.class.path=D:\devSoftware\IntelliJ IDEA 2023.2.5\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\devSoftware\IntelliJ IDEA 2023.2.5\lib\idea_rt.jar=51392:D:\devSoftware\IntelliJ IDEA 2023.2.5\bin" -Dfile.encoding=UTF-8 -classpath "D:\devSoftware\IntelliJ IDEA 2023.2.5\plugins\maven\lib\maven3\boot\plexus-classworlds-2.7.0.jar;D:\devSoftware\IntelliJ IDEA 2023.2.5\plugins\maven\lib\maven3\boot\plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version=2023.2.5 -s F:\.m2\settings.xml -Dmaven.repo.local=F:\.m2\repository -DskipTests=true install -P dev
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.dromara:ruoyi-network-telphone:5.3.1: The following artifacts could not be resolved: org.dromara:ruoyi-modules:pom:5.3.1 (absent): org.dromara:ruoyi-modules:pom:5.3.1 was not found in https://maven.aliyun.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of aliyunmaven has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 4, column 13
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.dromara:ruoyi-network-telphone:5.3.1 (D:\WorkSp\IdeaSp\sp2\RuoYi-Vue-Plus\ruoyi-modules\ruoyi-network-telphone\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for org.dromara:ruoyi-network-telphone:5.3.1: The following artifacts could not be resolved: org.dromara:ruoyi-modules:pom:5.3.1 (absent): org.dromara:ruoyi-modules:pom:5.3.1 was not found in https://maven.aliyun.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of aliyunmaven has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 4, column 13 -> [Help 2]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

Process finished with exit code 1

看着好像是pom文件的问题

解决办法:

1.注释掉ruoyi-admin中ruoyi-network-telphone模块的引用,如果其他地方也有引用,同样一起注释

        <!--  network_phone模块  -->
<!--        <dependency>
            <groupId>org.dromara</groupId>
            <artifactId>ruoyi-network-telphone</artifactId>
        </dependency>-->

2.注释掉ruoyi-modules中pom.xml的模块申明

    <modules>
        <module>ruoyi-demo</module>
        <module>ruoyi-generator</module>
        <module>ruoyi-job</module>
        <module>ruoyi-system</module>
        <module>ruoyi-workflow</module>
<!--        <module>ruoyi-network-telphone</module>-->
    </modules>

3.重新运行项目maven的intall命令  编译成功

4.再重新去掉1.2步骤的注释,重新引用,再重新编译就成功了

http://www.dtcms.com/a/117928.html

相关文章:

  • 鸿蒙开发_ARKTS快速入门_语法说明_组件声明_组件手册查看---纯血鸿蒙HarmonyOS5.0工作笔记010
  • 1631. 最小体力消耗路径
  • Quartz 数据持久化 接入MySQL数据库 数据不丢失 数据入库
  • 人工智能通识速览(Part4. 评估指标)
  • Android WiFi协议之P2P介绍与实践
  • git功能点管理
  • Redis 与 MongoDB 对比分析
  • Stable Diffusion XL、SD3 与 Flux 模型常用优化器总结
  • 【群晖】挂载小雅alist到AList网盘中
  • Android Automotive车载系统面试题及参考答案
  • Swift语言的云存储
  • 11231231
  • 轨检探伤专用一体机平板电脑:为铁路安全保驾护航
  • docker的几种网络模式
  • 从搜索丝滑过渡到动态规划的学习指南
  • 数据库50个练习
  • 各开源协议一览
  • js前端对时间进行格式处理
  • 数据结构与算法-数学-基础数学算法(筛质数,最大公约数,最小公倍数,质因数算法,快速幂,乘法逆元,欧拉函数)
  • pyTorch-迁移学习-图片数据增强-四种天气图片的多分类问题
  • 群体智能优化算法-白鲨优化算法(White Shark Optimizer,WSO,含Matlab源代码)
  • JS中的WeakMap
  • 思考 - 操作系统
  • 路由器工作在OSI模型的哪一层?
  • babel-runtime 如何缩小打包体积
  • usbip学习记录
  • 基于springboot微信小程序课堂签到及提问系统(源码+lw+部署文档+讲解),源码可白嫖!
  • 自动提取pdf公式 ➕ 输出 LaTeX
  • C++ 指针类型转换全面解析与最佳实践
  • PyTorch标注工具