Play 框架依赖项自定义模块远程存储库身份验证



我正在尝试在应用程序的依赖项文件中设置自定义模块引用。

但是,我需要一个远程 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. 

我对玩框架真的很陌生。有人可以帮我解决上述问题吗?

我正在使用播放 1.2.4。

提前谢谢。

我知道

这是一个古老的线程。希望此评论可以使仍在寻找答案的其他人受益。

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 -> *

最新更新