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

这篇具有很好参考价值的文章主要介绍了【运行问题】Some problems were encountered while building the effective model for。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

POM导包结构问题

问题如图

【运行问题】Some problems were encountered while building the effective model for,编程遇到的问题,java,spring boot,spring

 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>

点击运行即可

【运行问题】Some problems were encountered while building the effective model for,编程遇到的问题,java,spring boot,spring

小小白变小白中!!!文章来源地址https://www.toymoban.com/news/detail-618819.html

到了这里,关于【运行问题】Some problems were encountered while building the effective model for的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • docker 报错“Encountered errors while bringing up the project”,实测有效

    最近在安装开源数据可视化工具 DataEase 服务时,遇到了报错,报错截图如下: 报错内容:  解决方案: 当这种报错时,dectl reload、dectl restart 都不生效,那么出现错误的原因是什么呢? 错误出现的原因是,之前启动的 docker-compose 没有关闭。 此时只需要进行 docker-compose 的关

    2024年02月14日
    浏览(46)
  • 【Unity报错】Some objects were not cleaned up when closing the scene.

    Unity结束运行的时候报错Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?) 结束运行的时候突然报错,有概率,有时候有有时候没有 结束运行的时候在OnDestroy中调用了Mono的单例类,但是呢OnDestroy调用次序是不同的,有可能A先B后,也有可能是B先

    2024年02月02日
    浏览(31)
  • Docker Desktop-Unexpected WSL error An unexpected error was encountered while executing a WSL comman

    windows安装docker报错: Docker Desktop - Unexpected WSL error An unexpected error was encountered while executing a WSL command. Common causes include access rights issues, which occur after waking the computer or not being connected to your domain/active directory. Please try shutting WSL down (wl --shutdown) and/or rebooting your computer. If not suff

    2024年03月10日
    浏览(56)
  • redisson Unexpected exception while processing command Only 1 of 2 slaves were synced

    目录 背景: 现象: 问题定位: 问题原因: 解决: 生产环境一个活动给某个用户发送积分失败,核心业务接口使用Redisson分布式锁 同事答复:redis主从切换导致的问题。 个人表示怀疑,所以想定位下真实原因。 redisson 3.17.3 sentinel模式:master slave1 slave2      dependency            

    2024年02月04日
    浏览(29)
  • 前端build打包生成的dist使用 nginx 运行接口报错405和401问题。

            dist 目录是一个包含了打包后的项目代码和相关依赖项的目录,用于在部署时将项目移植到其他环境中。它提供了一个整理而简化的文件结构,使得部署过程更加方便和可靠。         直接打开报错会空白可以使用 nginx 来启动。Nginx 官方网站:nginx news 下载很快很方

    2024年01月21日
    浏览(37)
  • 解决Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.

    🌟背景: 当运行代码时出现下面的错误: 🌟解决方式: 删除/android下的**.gradle 文件,然后重新运行 npm run android**即可解决! 🌟亲测:

    2024年02月11日
    浏览(47)
  • Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. 解决办法

    今天编译一个之前在家里打包的项目 然后发现公司的电脑编译不过 问题如下 Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use \\\'--warning-mode all\\\' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/

    2024年02月13日
    浏览(31)
  • Junit运行错误:报错no tests were found

    在正常书写测试类时,尝试运行发现报错:no tests were found 上网搜索出现该情况的可能性主要为 1.@Test注解的单元测试方法不能有返回值 2.进行单元测试的方法不能私有化 修改单元测试方法后问题仍未得到解决 后来发现可能是junit依赖有问题,更换junit依赖版本为4.12(原本使

    2024年02月03日
    浏览(41)
  • Junit测试运行出现No tests were found

    执行contextLoads()方法的时候是没问题的。 当想单独执行add()方法时就出现了No tests were found这个错误。 然后我试着将add()方法返回值改成void,执行成功。 又试了一下将方法定义为private,同样报错。 @Test注解的单元测试方法 不能有返回值 ,要用 void 。 方法定义为 private 的也不

    2024年02月11日
    浏览(32)
  • android打包出错A failure occurred while executing com.android.build.gradle

    报错信息如下: Execution failed for task \\\':app:packageDebug\\\'. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Entry name \\\'res/animator/linear_indeterminate_line1_head_interpolator.xml\\\' collided * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log o

    2024年02月11日
    浏览(46)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包