如何使用Play framework的dependencies.yml进行存储库授权?

时间:2011-09-20 08:33:59

标签: playframework dependency-management

我正在使用play框架的依赖机制来下载库(参见http://www.playframework.org/documentation/1.2/dependency)。但是,我们的某个maven存储库不是公共的,需要用户名/密码才能从中获取工件。它们设置在$ USER_HOME / .m2 / settings.xml中,但Play似乎忽略了这一点。那么我在哪里可以指定Play可用于从非公共存储库成功下载工件的登录凭据?

1 个答案:

答案 0 :(得分:2)

播放!不使用Maven来构建应用程序,而是使用Apache Ivy(sbt将在Play!2.0中使用)。但是,Apache Ivy依赖Maven存储库来获取依赖项。

因此,在您的情况下,我认为您必须创建一个.ivy2/ivysettings.xml文件和define the credentials there才能正确访问Play!。