How to configure maven proxy for Spring Cloud Data Flow for VMware Tanzu in air-gapped environment
search cancel

How to configure maven proxy for Spring Cloud Data Flow for VMware Tanzu in air-gapped environment

book

Article ID: 297190

calendar_today

Updated On:

Products

Support Only for Spring

Issue/Introduction

In air-gapped environment, and no internal maven repository is available, dataflow has to reach out to external network to download app packages. This KB describes the setup steps.

Environment

Product Version: 1.10

Resolution

As developer, when create or update Spring Cloud Data Flow instance for VMware Tanzu, maven proxy can be specified in `-
c` JSON parameter. 

$ cf create-service p-dataflow standard dataflow-si -c '{"maven.proxy.host": "10.213.60.4", "maven.proxy.port": 8090}'

The setting will be applied into the service backend app as environment variable SPRING_APPLICATION_JSON. 

(under p-dataflow org, <SERVICE GUID> space)
$ cf env dataflow
...
SPRING_APPLICATION_JSON: {"maven.proxy.port":8090,"maven.proxy.host":"10.213.60.4"}
...

For other maven settings, please refer to Spring Cloud Data Flow Reference Guide - Maven


Additional Note

The proxy setting is only for download app packages from maven repository, it doesn't work with "import application coordinates from <REMOTE_REPOSITORY>", as workaround please download the property files and "import application coordinates from a properties file" instead.