Non-resolvable parent POM while doing mvn install using dockerfile
Issue
- Build are failing with the following error inside RHOCP when we are trying to build a spring boot application using the
dockerfile
.
Downloading from redhat-ga: https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.6.1/spring-boot-starter-parent-2.6.1.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.xyzftp:sftp-fileprocessing:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.6.1 from/to central (https://repo1.maven.org/maven2/): repo1.maven.org: Try again and 'parent.relativePath' points at no local POM @ line 6, column 10
Environment
- Red Hat Openshift Container Platform
- 4.X
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.