We are trying to build and deploy our applications in openshift.
By default, the openshift is taking default maven settings.xml for building the application, which in-turn try to download the jars from repo https://repo1.maven.org/maven2.
We have jfrog repository, which we use to publish all our private artifacts(also has authentication to publish and access the artifacts), we have custom settings.xml generated from jfrog which we are using in local machines/servers to build the applications.
currently i tried the following step to configure our(custom) settings.xml in openshift, but its not working
Created a config map in open shift using below command
oc create configmap mavensettings --from-file=settings.xml=settings.xml
Added the above created configmap in buildconfig yml
sourceSecret:
name: appresource
configMaps:
- configMap:
name: mavensettings
but, this is not working,
any suggestion on how use custom settings.xml(jfrog repository in our case) in openshit to build the applications or an alternative way to download the artifacts from private repository during build in openshift? any suggestion is helpful