maven - 在 STS 中导入 Cumulocity 的“cumulocity-agents”项目后编译错误
问题描述
我从 Bitbucket 下载了 Cumulocity 的“cumulocity-agents”项目,然后在 STS 中将其作为“现有的 Maven 项目”导入,我得到了很多编译错误。
我按照项目的Bitbucket页面中的描述更改了Maven的settings.xml,安装了Lombok,但仍然有很多错误。然后我开始修复错误,为 STS 提供信息,从哪些 jar 中加载一些类。此错误几乎已修复,但 pom.xml 文件中仍然存在错误。
pom 文件顶部的错误如下: Project build error: Non-resolvable parent POM for com.nsn.cumulocity.clients-java:clients-java:8.18.12: Failure to find com.nsn.cumulocity。http://resources.cumulocity.com/maven/repository中的root:root:pom:8.18.1已缓存在本地存储库中,直到 cumulocity-maven-repo 的更新间隔已过或更新完成后才会重新尝试解析被迫
项目构建错误:不可解析的导入 POM:未能在 http://resources.cumulocity.com/maven/repository 中找到 com.nsn.cumulocity.clients-java:microservice-dependencies:pom:1005.1.0-SNAPSHOT 已缓存在本地存储库中,直到经过 cumulocity-maven-repo 的更新间隔或强制更新后才会重新尝试解析
然后在 pom 文件中还有其他不同的错误。
请告知如何解决此问题或告诉我尝试在本地编译项目时我做错了什么。
解决方案
cumulocity-agents 不是公共存储库,其内容不打算由外部人员使用、编译或开发。
有关如何使用该项目的详细信息,请参阅内部文档。
推荐阅读
- android-recyclerview - reyclerview 中突出显示的项目在 scolling 时会丢失其状态
- office-addins - 如何在word在线插件中插入特定字符长度后的文本?
- python - 如何为 POST 配置 python 服务器?
- android - 如何检测视频何时在 WebView 中播放(没有 js 注入)?
- flutter - Dart 空安全性抱怨一个函数变为空,尽管存在空检查
- python - 无需硬刷新即可更新烧瓶
- spring - 将多个文件从 angular typescript 发送到 spring 并作为 zip 文件夹返回以供下载?
- operator-overloading - 帕斯卡中记录的横向隐式/显式类型对话
- python - 如何更改 pptx-python 中的字符间距?
- node.js - nodejs上的websocket(ws),图像速度很慢,但基本文本速度很快