0

目前我正在尝试从多个存储库部署多个工件。OPSCODE 的 maven 食谱提供了属性node['maven']['repositories']。我添加了六个不同的存储库,但只采用了默认和最后一个。我的代码如下所示:

# Java
default['java']['install_flavor'] = 'oracle'
default['java']['oracle']['accept_oracle_download_terms'] = true
default['java']['jdk_version'] = '7'

# Maven
force_default['maven']['repositories'] =
[
    'http://location1.com/repo',
    'http://location2.com/repo',
    'https://location3.com/repo',
    'http://location4.com/repo1',
    'http://location4.com/repo2'
]

有没有人有办法解决吗?

4

0 回答 0