首页 > 解决方案 > 在 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 文件中还有其他不同的错误。

请告知如何解决此问题或告诉我尝试在本地编译项目时我做错了什么。

标签: mavencompilationprojectcumulocity

解决方案


cumulocity-agents 不是公共存储库,其内容不打算由外部人员使用、编译或开发。

有关如何使用该项目的详细信息,请参阅内部文档。


推荐阅读