WeBankPartners/we-cmdb

根据快速开始的文档进行操作,提示编译失败

Closed this issue · 1 comments

描述您遇到的bug

编译失败:

[INFO] Building jar: /home/nick/we-cmdb-1.5.2/cmdb-ui/target/cmdb-ui-1.5.0.jar
[INFO] 
[INFO] ---------------------< com.webank.cmdb:cmdb-core >----------------------
[INFO] Building cmdb-core 1.5.0                                           [3/3]
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.webank.wecube.platform:platform-auth-client:jar:1.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for cmdb 1.5.0:
[INFO] 
[INFO] cmdb ............................................... SUCCESS [  0.334 s]
[INFO] cmdb-ui ............................................ SUCCESS [04:41 min]
[INFO] cmdb-core .......................................... FAILURE [  0.939 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  04:43 min
[INFO] Finished at: 2020-09-05T16:48:46+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project cmdb-core: Could not resolve dependencies for project com.webank.cmdb:cmdb-core:jar:1.5.0: Could not find artifact com.webank.wecube.platform:platform-auth-client:jar:1.0-SNAPSHOT -> [Help 1]
[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/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :cmdb-core

如何重现

按照这篇文档,1.5.2 tag进行操作:
https://github.com/WeBankPartners/we-cmdb/blob/v1.5.2/cmdb-wiki/docs/developer/wecmdb_local_standalone_guide.md

预期行为

编译通过

截图

附加

这里是个问题,目前因版本依赖关系,会需要先编译wecube-platform后才能产生com.webank.wecube.platform:platform-auth-client:jar:1.0-SNAPSHOT依赖包
我们已经计划本次版本(v1.5.3)要移除此依赖,目前的临时解决办法如下:

git clone https://github.com/WeBankPartners/wecube-platform.git
cd wecube-platform
mvn -U clean install -Dmaven.test.skip=true

这个步骤会编译并在maven库中添加platform-auth-client:jar:1.0-SNAPSHOT依赖,这样就可以解决CMDB编译问题