云效部署时,java构建步骤失败

Blade 未结 2 145
554041659
554041659 剑童 2024-09-09 11:36

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

1. 云效部署,前几个步骤正常,到java构建步骤失败(报错信息见四)

2. 

3.


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

    正常部署

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


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


好像加载不到基础的一些jar包,

最后错误日志如下:

10:03:32] [INFO] rst-finance ........................................ SKIPPED

[10:03:32] [INFO] ------------------------------------------------------------------------

[10:03:32] [INFO] BUILD FAILURE

[10:03:32] [INFO] ------------------------------------------------------------------------

[10:03:32] [INFO] Total time:  24.487 s

[10:03:32] [INFO] Finished at: 2024-09-04T10:03:32+08:00

[10:03:32] [INFO] ------------------------------------------------------------------------

[91m[10:03:32] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project blade-common: Compilation failure: Compilation failure: 

[91m[10:03:32] [ERROR] /root/workspace/springcloudserver_Pj88/blade-common/src/main/java/org/springblade/common/utils/DataConvertUtil.java:[3,26] 程序包javax.servlet.http不存在

[91m[10:03:32] [ERROR] /root/workspace/springcloudserver_Pj88/blade-common/src/main/java/org/springblade/common/utils/DataConvertUtil.java:[19,43] 找不到符号

[91m[10:03:32] [ERROR]   符号:   类 HttpServletRequest

[91m[10:03:32] [ERROR]   位置: 类 org.springblade.common.utils.DataConvertUtil

[91m[10:03:32] [ERROR] /root/workspace/springcloudserver_Pj88/blade-common/src/main/java/org/springblade/common/utils/CommonUtil.java:[20,41] 程序包org.springframework.web.multipart不存在

[91m[10:03:32] [ERROR] /root/workspace/springcloudserver_Pj88/blade-common/src/main/java/org/springblade/common/utils/CommonUtil.java:[46,23] 找不到符号

[91m[10:03:32] [ERROR]   符号:   类 MultipartFile

[91m[10:03:32] [ERROR]   位置: 类 org.springblade.common.utils.CommonUtil

[91m[10:03:32] [ERROR] -> [Help 1]

[91m[10:03:32] [ERROR] 

[91m[10:03:32] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[91m[10:03:32] [ERROR] Re-run Maven using the -X switch to enable full debug logging.

[91m[10:03:32] [ERROR] 

[91m[10:03:32] [ERROR] For more information about the errors and possible solutions, please read the following articles:

[91m[10:03:32] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

[91m[10:03:32] [ERROR] 

[91m[10:03:32] [ERROR] After correcting the problems, you can resume the build with the command

[91m[10:03:32] [ERROR]   mvn <args> -rf :blade-common

[91m[10:03:32] [ERROR] BUILD ERROR

[91m[10:03:32] [ERROR] 243705470

[91m[10:03:32] [ERROR] 步骤运行失败,返回码: 1

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


好像加载不到基础的一些jar包

2条回答
  • servlet的依赖没有引入

    1725863549534.jpg

    0 讨论(0)
  • 2024-09-09 14:48

    检查一下对应版本的bladex-tool有没有提前构建到仓库,如果没有仓库看看有没有构建在服务器本地。如果tool的依赖没有,打包的时候也会报错

    0 讨论(0)
提交回复