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

编程入门 行业动态 更新时间:2024-10-23 04:35:26

【运行问题】Some problems were <a href=https://www.elefans.com/category/jswz/34/1747871.html style=encountered while building the effective model for"/>

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

POM导包结构问题

文章目录

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

问题如图

 Some problems were encountered while building the effectivemodel 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博客

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

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

<version></version>

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

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

跟着设置就好了

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

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

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

将这一部分修改

<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.6.1</version><relativePath/> <!-- lookup parent from repository -->
</parent>

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

<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>1.5.6.RELEASE</version><relativePath/>
</parent>

点击运行即可

小小白变小白中!!!

更多推荐

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

本文发布于:2024-03-09 15:34:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1725383.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:encountered   problems   building   model   effective

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!