we-cmdb icon indicating copy to clipboard operation
we-cmdb copied to clipboard

CMDB开发环境搭建缺少依赖包

Open nevinxie opened this issue 7 years ago • 6 comments

描述您遇到的bug / Describe the bug
搭建CMDB开发环境的时候,maven下载依赖出错。 Could not find artifact ch.netzwerg:paleo-core:pom:0.11.0 in central (https://repo.maven.apache.org/maven2)

如何重现 / To Reproduce
再现行为的步骤:/ Steps to reproduce the behavior: 下载代码,然后使用maven下载依赖

预期行为 / Expected behavior
对你预期会发生的事情的清晰而简洁的描述。 / A clear and concise description of what you expected to happen. 无报错

截图 / Screenshots
请添加屏幕截图以帮助解释您的问题。 / If applicable, add screenshots to help explain your problem. image

附加 / Additional context
在此添加有关问题的任何其他上下文。 / Add any other context about the problem here

nevinxie avatar Aug 17 '19 11:08 nevinxie

这是因为默认的maven中央仓库没有收录这个依赖包,多配个收录该包的maven仓库或仓库镜像即可。 如:spring 仓库或腾讯maven仓库。

image

可以在开发环境搭建文档补充一步加以说明。

jordanzhangsz avatar Aug 19 '19 01:08 jordanzhangsz

这是因为默认的maven中央仓库没有收录这个依赖包,多配个收录该包的maven仓库或仓库镜像即可。 如:spring 仓库或腾讯maven仓库。

image

可以在开发环境搭建文档补充一步加以说明。

我建议修改pom.xml添加仓库支持

nevinxie avatar Aug 19 '19 16:08 nevinxie

陈君已处理了这个问题,原因为我们引用了一个稀有的包swagger2markup(计划借助swagger自动生成md格式的API文档),间接依赖了paleo 这个包,暂时清掉这个没有用的包swagger2markup即可。

jordanzhangsz avatar Aug 20 '19 00:08 jordanzhangsz

@jordanzhangsz @junchensz 如果已经处理,请提供commit或者pull request在这里,我们可以close issue.

nevinxie avatar Aug 20 '19 01:08 nevinxie

在建立circleci build的时候,我发现了这个问题,已经把它去掉了。 https://github.com/WeBankPartners/we-cmdb/pull/21

junchensz avatar Aug 20 '19 01:08 junchensz

在建立circleci build的时候,我发现了这个问题,已经把它去掉了。 #21

谢谢君爷,下次Commit记得关联issue(使用#)

nevinxie avatar Aug 20 '19 01:08 nevinxie