こんなシチュエーション。
-
公開したくないjarとPlayモジュールをBasic認証付きの同一サーバ(Mavenリポジトリ)においている
-
play dependencies を叩いた時にこのサーバからjarとPlayモジュールをダウンロードして依存性を解決したい
ファイルがなかったら作ります。
<ivysettings>
<property name="ivy.checksums" value=""/>
<credentials host="your.repository.com" realm="your realm" username="your name" passwd="your password" />
</ivysettings>
リポジトリのtypeに「chain」を使う。
require:
- play
- xx.yy.zzz -> common-lib 1.0 # カスタムリポジトリ上のjar
- xx.yy.zzz -> common-module 1.0 # カスタムリポジトリ上のPlayモジュールzip
repositories:
- your realm:
type: chain
using:
- modules:
type: http
artifact: "https://your.repository.com/xx/yy/zzz/[module]/[revision]/[module]-[revision].zip"
- libs:
type: http
artifact: "https://your.repository.com/xx/yy/zzz/[module]/[revision]/[module]-[revision].jar"
contains:
- xx.yy.zzz -> *
ダウンロードされるはず!
play dependencies --debug
デバッグ情報がログとして出力される。ログに404とか401とか出力されていないか確認する。