My Maven project encountered this error message:

Project build error: Non-resolvable parent POM for com.sap.cloud.sample:connectivity:[unknown-version]: A Failure to find com. SAP. Cloud. Sample: the SDK samples – the parent: pom: 1.0.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and ‘parent.relativePath’ points at wrong local POM

Analysis of the

The pom.xml of my Maven project called Connectivity defines a parent dependency:

Maven will report this error because there is no local pop.xml file in the dis folder.

The solution

Create a new pom.xml folder in the dis folder, one level above the current project, and define the SDK-samples-parent content.

And then the problem is solved.

For usage of the POM.xml parent tag, see this article.

For more of Jerry’s original technical articles, please follow the public account “Wang Zixi” or scan the following QR code: