首页 > 基础资料 博客日记

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

2024-03-06 09:00:07基础资料围观218

这篇文章介绍了【运行问题】Some problems were encountered while building the effective model for,分享给大家做个参考,收藏Java资料网收获更多编程知识

POM导包结构问题

问题如图

 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博客

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

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

<version></version>

(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仅用作模块的聚合器。并没有导入到项目中。为了解决这个问题,你需要在模块中取消父声明中的相对路径,如下所示

将这一部分修改

<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>

点击运行即可

小小白变小白中!!!


文章来源:https://blog.csdn.net/weixin_62414347/article/details/129926227
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:jacktools123@163.com进行投诉反馈,一经查实,立即删除!

标签:

相关文章

本站推荐

标签云