项目打包报不能在脱机状态下访问**资源

在使用Maven打包Spring Boot项目时遇到问题,错误提示为不能在脱机状态下访问特定资源。问题涉及到spring-boot-maven-plugin的2.5.0版本,以及依赖于org.springframework.boot的相关库。由于尝试访问的nexus-snapshots仓库在离线模式下无法达到,导致打包失败。
摘要由CSDN通过智能技术生成

项目场景:

springboot项目 使用maven进行打包操作

问题描述:

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.5.0:repackage (default) on project lsmy-bi-web: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:2.5.0:repackage failed: Plugin org.springframework.boot:spring-boot-maven-plugin:2.5.0 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.springframework.boot:spring-boot-buildpack-platform:jar:2.5.0, org.springframework.boot:spring-boot-loader-tools:jar:2.5.0, org.apache.maven.shared:maven-common-artifact-filters:jar:3.2.0, org.apache.maven:maven-model:jar:3.6.3, org.apache.maven:maven-artifact:jar:3.6.3: Cannot access nexus-snapshots (http://repository.liej.com:8081/nexus/content/groups/public) in offline mode and the artifact org.springframework.boot:spring-boot-buildpack-platform:jar:2.5.0 has not been downloaded from it before.

在这里插入图片描述

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值