1

アプリケーションの依存関係ファイルにカスタム モジュール参照を設定しようとしています。

ただし、アーティファクトとして参照されるリモート URL が必要です。

しかし、私はできません

i.firstly get the dependencies to be resolved from the URL say if it doesn't need any sort of authentication. Please explain me each of the parts to be defined in the dependency.yml while adding custom module

ii. secondly I am unable to find a way to set the authentication credentials for the above repository while it will be downloaded. 

フレームワークをプレイするのは本当に初めてです。誰かが上記で私を助けてくれませんか。

Play 1.2.4 を使用しています。

前もって感謝します。

4

1 に答える 1

0

私はこれが古いスレッドであることを知っています。このコメントがまだ答えを探している他の人に役立つことを願っています.

Play フレームワークは内部で Ivy を使用しており.ivy2/ivysettings.xml、ホーム ディレクトリの下で認証情報を構成できます。Play フレームワークのドキュメントを参照してください

ウェブサイトから引用するには

<!-- .ivy2/ivysettings.xml -->
<ivysettings>
  <credentials host="maven-repo.xxx"
               realm="Sonatype Nexus Repository Manager"
               username="user" 
               passwd="reallygreatpassword"/>
</ivysettings>

次にconf/dependencies.yml、カスタム リポジトリを指すようにアプリケーションを変更します。

require:
    - mygroupid -> myartifactid version

repositories:
    - myreponame:
        type: http
        artifact: "url to the repo"
        contains:
            - mygroupid -> *
于 2015-04-13T16:56:08.943 に答える