小工具知识网

当前位置: 首页 > 行业知识 > 【运行问题】Some problems were encountered while building the effective model for

行业知识

【运行问题】Some problems were encountered while building the effective model for

2026-12-05 06:47:17 来源:互联网转载

POM导包结构问题

文章目录

  • POM导包结构问题
    • 问题如图
      • **第一种可能问题**:添加了**重复的依赖jar包**
      • **第二种可能**:**没有添加对应的打包版本信息**
      • **第三种可能是一些编码配置不统一**
      • **第四种就是如下:我出现的问题。**

        问题如图

         Some problems were encountered while building the effective  model for com.example:mybatisplusboot :jar:0.0.1-SNAPSHOT 'dependencyManagement.dependencies.dependency.exclusions.  exclusion.artifactId'  for org.quartz-scheduler:quartz:jar with value '*' do

        问题出现情况,在我构建springboot的mybatispuls的测试时,出现了该问题,搜寻了各种解决方案,相关方案如下,按照不同的方式自己对照一下可能出现在那。

        第一种可能问题:添加了重复的依赖jar包

        检查自己的依赖是否有重复的jar包导入,参考如下连接

        (42条消息) Some problems were encountered while building the effective model for com.qc_婷秋菊的博客-CSDN博客

        第二种可能:没有添加对应的打包版本信息

        参考文章如下。就是没有加

         

        (42条消息) Some problems were encountered while building the effective model for com.qc_婷秋菊的博客-CSDN博客

        第三种可能是一些编码配置不统一

        跟着设置就好了

        https://blog.csdn.net/weixin_43533732/article/details/113738604

        第四种就是如下:我出现的问题。

        我试了以上所有情况还没解决,参考一下是不是下面这个原因

        出现这个问题是因为Maven默认假定父pom在包含模块pom的父文件夹中。然而,在我的项目中,情况似乎并非如此:我的父pom是org.springframework.boot:Spring-boot-starter-parent:1.5.6.RELEASE,而父文件夹中的pom com.xxx:parent:1.0.0仅用作模块的聚合器。并没有导入到项目中。为了解决这个问题,你需要在模块中取消父声明中的相对路径,如下所示

        将这一部分修改

                org.springframework.boot        spring-boot-starter-parent        2.6.1         

        修改如下,修改要下载一定时间

            org.springframework.boot    spring-boot-starter-parent    1.5.6.RELEASE    

        点击运行即可

        小小白变小白中!!!

上一篇:Mac怎么查看路由器DNS服务器?

下一篇:轻松掌握快递追踪秘籍!