Springboot多模块打包出错问题可能是因为

Springboot多模块打包提示

ailed to execute goal on project videopush: Could not resolve dependencies for project com.rtmp:videopush:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: org.bytedeco:ffmpeg-platform:jar:windows-x86_64:4.1.3-1.5.1, org.bytedeco.javacpp-presets:ffmpeg-platform:jar:windows-x86_64:4.0.2-1.4.3: Failure to find org.bytedeco:ffmpeg-platform:jar:windows-x86_64:4.1.3-1.5.1 in http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of AliMaven has elapsed or updates are forced -> [Help 1]

之前用的是阿里源,将maven源更改为原始的就可以了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
回答: 在Spring Boot模块项目中,如果只需要在启动类所在的模块进行打包,可以在该模块的pom文件中添加打包插件。不要在父类添加打包插件,否则会导致所有子模块都使用spring-boot-maven-plugin的方式来打包,这可能会导致一些问题。\[1\]在项目中,通常会包含一个父工程、多个子模块和一个工具模块。每个子模块都有自己的启动类,而工具模块则没有。因此,每个模块的pom文件可能会有所不同。根据需要修改pom文件,并使用IDEA的打包工具进行一键打包即可。\[2\]在pom文件中,可以指定打包插件来构建可执行的JAR文件。例如,可以使用org.springframework.boot:spring-boot-maven-plugin插件来实现这个功能。\[3\] #### 引用[.reference_title] - *1* *3* [SpringBoot模块项目打包](https://blog.csdn.net/qq_39974376/article/details/108087260)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [SpringBoot模块项目打包教程,超详细图文详解!](https://blog.csdn.net/weixin_43314519/article/details/115152850)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值