Search code examples
mavendockerjenkinsjenkins-pipelines4sdk

How to solve Non-resolvable import POM?


This is the error i am facing while doing a Jenkins build by pulling a maven project from GitHub.

[ERROR] Non-resolvable import POM: Could not transfer artifact
com.sap.cloud.s4hana:sdk-bom:pom:1.4.0-SNAPSHOT from/to nexus-central
(http://<nexus server>/nexus/content/groups/build.snapshots/):
<nexus server> @ line 16, column 25

I am currently working on VMware workstation 14 player for Linux and using Jenkins image from Docker to run this build.

Below is error image

Error image


Solution

  • You specified a custom maven settings.xml in your project, which specifies a custom nexus server as maven central mirror. However, at runtime the pipeline fails to connect to this server.

    Could it be that your intranet nexus is not available from within your Cx Server container? Please check that you use proper network settings (e.g. that your corporate proxy is properly configured).

    Furthermore, the comments regarding the SNAPSHOT version are correct too - please only use released versions of the SDK (currently 1.4.0).