3
gitlab CI/CD 流水线打包的问题
source link: https://www.v2ex.com/t/814709
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
用 CI/CD 流水线打的 jar 包,登录的时候,查询成功后,用户信息为 null 。但在自己本地打的 jar 就没有问题。有 v 友遇到过吗?
11 条回复 • 2021-11-11 22:41:30 +08:00
AoEiuV020 14 小时 31 分钟前
@zzfer #2 我意思是逆推回去,你说的用户信息为 null 断点看看总有个直接原因吧,从原因推原因的原因,总能查到是从哪个类的哪个方法开始数据出现异常的,定位到具体 class 说不定就能看出问题了,
zzfer 13 小时 47 分钟前
@chendy 线上是 mvn -Dmaven.repo.local=${MAVEN_CACHE} clean install -Dmaven.test.skip=true
本地是 mvn clean install -Dmaven.test.skip=true
本地是 mvn clean install -Dmaven.test.skip=true
chendy 13 小时 36 分钟前
zzfer 12 小时 57 分钟前
@chendy 解压 jar 包对比,感觉最大可能是 maven 和 jdk 版本有点不同。
CI: Maven 3.6.3
Build-Jdk: 1.8.0_92
Created-By: Apache Maven 3.3.9
Build-Jdk: 1.8.0_261
CI: Maven 3.6.3
Build-Jdk: 1.8.0_92
Created-By: Apache Maven 3.3.9
Build-Jdk: 1.8.0_261
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK