项目能正常启动,编译报错

Blade 未结 1 91
小白xxx
小白xxx 剑侠 2024-11-11 15:50

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

1. 4.1.0版本,相关依赖都下载到本地了

2. 能正常启动,但是编译不了,编译报错


3.还有个现象不知道和这个有没有关系,就是在这个文件夹没启动,把项目整体搬到另一个文件夹启动不了,就是各种依赖找不到


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


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


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


org.springblade.platform:blade-bom:pom:4.1.0.RELEASE was not found in https://maven.aliyun.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of aliyun-repos has elapsed or updates are forced


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

1条回答
  • 2024-11-11 15:59

    Downloading from bladex: https://center.javablade.com/api/packages/blade/maven/org/springblade/platform/blade-bom/4.1.0.RELEASE/blade-bom-4.1.0.RELEASE.pom

    [ERROR] [ERROR] Some problems were encountered while processing the POMs:

    [ERROR] Non-resolvable import POM: Could not transfer artifact org.springblade.platform:blade-bom:pom:4.1.0.RELEASE from/to bladex (https://center.javablade.com/api/packages/blade/maven): authentication failed for https://center.javablade.com/api/packages/blade/maven/org/springblade/platform/blade-bom/4.1.0.RELEASE/blade-bom-4.1.0.RELEASE.pom, status: 401 Unauthorized @ org.springblade:BladeX:${revision}, D:\workCode\bladeXXC\pom.xml, line 44, column 25

    [ERROR] 'dependencies.dependency.version' for org.springblade:blade-core-boot:jar is missing. @ org.springblade:blade-log:${revision}, D:\workCode\bladeXXC\blade-ops\blade-log\pom.xml, line 22, column 21

    [ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-tenant:jar is missing. @ org.springblade:blade-log:${revision}, D:\workCode\bladeXXC\blade-ops\blade-log\pom.xml, line 27, column 21

    [ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-metrics:jar is missing. @ org.springblade:blade-ops:${revision}, D:\workCode\bladeXXC\blade-ops\pom.xml, line 27, column 21

    [ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-web:jar is missing. @ org.springblade:BladeX:${revision}, D:\workCode\bladeXXC\pom.xml, line 112, column 21

    [ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-websocket:jar is missing. @ org.springblade:BladeX:${revision}, D:\workCode\bladeXXC\pom.xml, line 132, column 21

    [ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-data-jpa:jar is missing. @ org.springblade:BladeX:${revision}, D:\workCode\bladeXXC\pom.xml, line 141, column 21

     @ 

    [ERROR] The build could not read 1 project -> [Help 1]

    [ERROR]   

    [ERROR]   The project org.springblade:blade-log:4.1.0.RELEASE (D:\workCode\bladeXXC\blade-ops\blade-log\pom.xml) has 7 errors

    [ERROR]     Non-resolvable import POM: Could not transfer artifact org.springblade.platform:blade-bom:pom:4.1.0.RELEASE from/to bladex (https://center.javablade.com/api/packages/blade/maven): authentication failed for https://center.javablade.com/api/packages/blade/maven/org/springblade/platform/blade-bom/4.1.0.RELEASE/blade-bom-4.1.0.RELEASE.pom, status: 401 Unauthorized @ org.springblade:BladeX:${revision}, D:\workCode\bladeXXC\pom.xml, line 44, column 25 -> [Help 2]

    [ERROR]     'dependencies.dependency.version' for org.springblade:blade-core-boot:jar is missing. @ org.springblade:blade-log:${revision}, D:\workCode\bladeXXC\blade-ops\blade-log\pom.xml, line 22, column 21

    [ERROR]     'dependencies.dependency.version' for org.springblade:blade-starter-tenant:jar is missing. @ org.springblade:blade-log:${revision}, D:\workCode\bladeXXC\blade-ops\blade-log\pom.xml, line 27, column 21

    [ERROR]     'dependencies.dependency.version' for org.springblade:blade-starter-metrics:jar is missing. @ org.springblade:blade-ops:${revision}, D:\workCode\bladeXXC\blade-ops\pom.xml, line 27, column 21

    [ERROR]     'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-web:jar is missing. @ org.springblade:BladeX:${revision}, D:\workCode\bladeXXC\pom.xml, line 112, column 21

    [ERROR]     'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-websocket:jar is missing. @ org.springblade:BladeX:${revision}, D:\workCode\bladeXXC\pom.xml, line 132, column 21

    [ERROR]     'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-data-jpa:jar is missing. @ org.springblade:BladeX:${revision}, D:\workCode\bladeXXC\pom.xml, line 141, column 21

    [ERROR] 

    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

    [ERROR] Re-run Maven using the -X switch to enable full debug logging.

    [ERROR] 

    [ERROR] For more information about the errors and possible solutions, please read the following articles:

    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

    [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

    Process finished with exit code 1


    回答: 2024-11-11 16:19

    有大佬解答不

    0 讨论(0)
提交回复