如何使用Play框架的dependency.yml进行存储库授权?
我正在使用 play 框架的依赖机制来下载库(请参阅 http://www.playframework .org/documentation/1.2/dependency)。然而,我们的 Maven 存储库之一不是公开的,需要用户名/密码才能从中获取工件。它们是在 $USER_HOME/.m2/settings.xml 中设置的,但 Play 似乎忽略了这一点。那么我在哪里可以指定 Play 可以用来从非公共存储库成功下载工件的登录凭据?
I'm using the dependency mechanism of the play framework to download libraries (see http://www.playframework.org/documentation/1.2/dependency). However one of our maven repositories is not public and requires a username/password in order to acquire artifacts from it. They are set up in $USER_HOME/.m2/settings.xml but Play seems to ignore this. So where can I specify login credentials that Play can use to successfully download artifacts from non-public repositories?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
玩!不使用 Maven 构建应用程序,而是使用 Apache Ivy (Play! 2.0 中将使用 sbt) 。然而,Apache Ivy 依赖 Maven 存储库来获取依赖项。
因此,就您而言,我认为您必须创建一个
.ivy2/ivysettings.xml
文件和 定义凭据,以提供对 Play! 的正确访问权限。Play! does not use Maven to build the application, but Apache Ivy instead (sbt will be used in Play! 2.0). However, Apache Ivy relies on Maven repositories to grab the dependencies.
So in your case, I think that you have to create a
.ivy2/ivysettings.xml
file and define the credentials there to give the correct access to Play!.