How to provide maven proxy settings in OpenShift
Issue
-
When using maven behind proxy it fails with below error :
Connection to https://repo1.maven.org refused[ERROR] The build could not read 1 project -> [Help 1] org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.3.RELEASE from/to central (https://repo1.maven.org/maven2): Connection to https://repo1.maven.org refused and 'parent.relativePath' points at no local POM @ line 23, column 10 -
Build fails with below error :
Connection to http://maven.repository.redhat.com refused: Connection timed out
Environment
- OpenShift Container Platform 3
- Java based containers using Maven
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.