打包模块报错依赖(present, but unavailable)

Blade 未结 1 42
154879594
154879594 2024-11-06 10:00

一、该问题的重现步骤是什么?

1. 把 BladeX pom的groupId和artifactId改成了我自己的模块名和增加了自己的开发的模块到 里面 (其他的没改)

2. 在子模块(比如blade-auth) pom里的parent名称从BladeX改成了我自己写的(看1)然后子模块的groupId和artifactId也改成了自己的

3. 在模块进行 mvn install/mvn clean install/ mvn clean install -U (离线模式或没有都报了一样的错误)

image.png

二、你期待的结果是什么?实际看到的又是什么?

能够成功打包全部模块。 现在是报错了 Build Failure


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

BladeX4.1.0, windows


四、请提供详细的错误堆栈信息,这很重要。

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  1.761 s

[INFO] Finished at: 2024-11-06T08:41:39+07:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal on project blade-auth: Could not resolve dependencies for project org.yyid:blade-auth:jar:4.1.0.RELEASE: The following artifacts could not be resolved: org.springblade:blade-core-launch:jar:4.1.0.RELEASE (present, but unavailable), org.springblade:blade-starter-loadbalancer:jar:4.1.0.RELEASE (present, but unavailable), org.springblade:blade-core-db:jar:4.1.0.RELEASE (present, but unavailable), org.springblade:blade-core-cloud:jar:4.1.0.RELEASE (present, but unavailable), org.springblade:blade-starter-metrics:jar:4.1.0.RELEASE (present, but unavailable), org.springblade:blade-starter-redis:jar:4.1.0.RELEASE (present, but unavailable), org.springblade:blade-starter-swagger:jar:4.1.0.RELEASE (present, but unavailable), org.springblade:blade-starter-social:jar:4.1.0.RELEASE (present, but unavailable), org.springblade:blade-starter-cache:jar:4.1.0.RELEASE (present, but unavailable), org.springblade:blade-starter-mybatis:jar:4.1.0.RELEASE (present, but unavailable), org.springblade:blade-starter-tenant:jar:4.1.0.RELEASE (present, but unavailable), org.springblade:blade-starter-sms:jar:4.1.0.RELEASE (present, but unavailable), org.springblade:blade-core-oauth2:jar:4.1.0.RELEASE (present, but unavailable): Cannot access aliyun-repos (https://maven.aliyun.com/repository/public) in offline mode and the artifact org.springblade:blade-core-launch:jar:4.1.0.RELEASE has not been downloaded from it before. -> [Help 1]

[ERROR] 


image.png


五、若有更多详细信息,请在下面提供。

确定这些被报错的依赖已经成功下载到我本土仓库了。 然后有试过如果我改回pom名称到BladeX是可以成功打包的。如何解决这个问题image.png

1条回答
  •  admin
    admin (楼主)
    2024-11-06 10:19

    不一样啊,不要加东西, ${revision}也不要改

    CleanShot20241106101851@2x.png

    0 讨论(0)
提交回复