0

Environment

  • Pivotal Cloud Foundry DEV
  • Spring Cloud Data Flow Server
  • Spring Cloud Data Flow Shell

Maven Specific Environment Variables (Spring Cloud Data Flow Server)

MAVEN_LOCALREPOSITORY =C:/Users/xx/.m2/repository/ MAVEN_REMOTE_REPOSITORIES_REPO1_URL=http://repo.spring.io/libs-snapshot

Deploying Streams which contains Apps locating in the Remote Repository works fine! Deploying Streams which contains Apps locating in the Local Repository crashes (org.springframework.cloud.dataflow.rest.client.DataFlowClientException: failed to resolve MavenResource:....).

Why?

Sheep
  • 23
  • 5

1 Answers1

0

The property for local repository needs to be: MAVEN_LOCAL_REPOSITORY =C:/Users/xx/.m2/repository/ underscore between LOCAL and REPOSITORY.

Did you see MAVEN_LOCALREPOSITORY anywhere in the documentation?

Ilayaperumal Gopinathan
  • 4,099
  • 1
  • 13
  • 12
  • In the documentation I found only an example that uses the property MAVEN_REMOTE_REPOSITORIES_REPO1_URL the right spelling for I didn't found... – Sheep Oct 17 '16 at 14:46
  • In the documentation I found only an example that uses the property MAVEN_REMOTE_REPOSITORIES_REPO1_URL the right spelling for the property maven.localRepository I didn't found – Sheep Oct 17 '16 at 14:47
  • I try it the Same Issue failed to resolve MavenResource – Sheep Oct 17 '16 at 14:52
  • Interesting. It works for me. What happens when you try using the cmdline property `--maven.localRepository=xx`. Also, I assume you are using the local data flow server. – Ilayaperumal Gopinathan Oct 17 '16 at 15:00
  • Dataflow Server runs into Virtual Box (PivotalPCF Dev) on my local Machine – Sheep Oct 17 '16 at 15:07
  • cf set-env dataflow-server MAVEN_REMOTE_REPOSITORIES_REPO1_URL https://repo.spring.io/libs-snapshot works fine – Sheep Oct 17 '16 at 15:12
  • ok, if you are running the SCDF server inside the virtual box, then make sure that the maven local repository location is accessible. – Ilayaperumal Gopinathan Oct 17 '16 at 15:19