【问题标题】:spring-cloud-deployer - specifying maven remote repository URLsspring-cloud-deployer - 指定 Maven 远程存储库 URL
【发布时间】:2016-08-18 21:01:22
【问题描述】:

Spring Cloud 数据流 - Cloudfoundry 服务器 (v1.0.0.M4)

在尝试将配置信息外部化到属性文件中,然后在安装时使用 Spring Cloud Config Server 提供这些环境设置时,我对一些我通常会以某种方式放置的值有疑问在 YML 清单中。

首先,在 YML 清单中,我可以这样定义它们:

JAVA_OPTS: -Dhttp.keepAlive=false
MAVEN_REMOTE_REPOSITORIES_SNAPSHOTS_URL: <nexus url>
MAVEN_REMOTE_REPOSITORIES_RELEASES_URL: <another nexus url>

那么我如何将这些放入属性文件中呢?这是我的猜测:

java.opts=-Dhttp.keepAlive=false
maven.remote.repositories.snapshots.url=<nexus url>
maven.remote.repositories.releases.url=<another nexus url>

【问题讨论】:

    标签: spring-cloud spring-cloud-config spring-cloud-dataflow


    【解决方案1】:

    如果您希望配置自定义 maven 存储库镜像,请查看此section

    Spring Cloud Deployer 的maven resolution 策略查找本节中定义的命名约定。如果您有一组正确的 k/v 对,则可以将它们列在属性文件中或作为 env-var 列出。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-12-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-25
      • 2013-11-01
      • 2012-08-10
      • 2012-02-26
      相关资源
      最近更新 更多