[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步骤的注释,重新引用,再重新编译就成功了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值