一、该问题的重现步骤是什么?
1. 把 BladeX pom的groupId和artifactId改成了我自己的模块名和增加了自己的开发的模块到 <modules> 里面 (其他的没改)
2. 在子模块(比如blade-auth) pom里的parent名称从BladeX改成了我自己写的(看1)然后子模块的groupId和artifactId也改成了自己的
3. 在模块进行 mvn install/mvn clean install/ mvn clean install -U (离线模式或没有都报了一样的错误)
二、你期待的结果是什么?实际看到的又是什么?
能够成功打包全部模块。 现在是报错了 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]
五、若有更多详细信息,请在下面提供。
确定这些被报错的依赖已经成功下载到我本土仓库了。 然后有试过如果我改回pom名称到BladeX是可以成功打包的。如何解决这个问题
扫一扫访问 Blade技术社区 移动端