Play 2.3.x是否可以在没有激活器(和maven)的情况下使用? [英] Can Play 2.3.x be used without Activator (and with maven)?

查看:84
本文介绍了Play 2.3.x是否可以在没有激活器(和maven)的情况下使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里有两个相关的问题.

I have two related questions here.

在Play 2.2.x中,发行版打包为zip文件,可通过maven存储库下载

In Play 2.2.x, the distribution was bundled as a zip file, and available for download through the maven repository http://downloads.typesafe.com/play/2.2.x/play-2.2.x.zip. This meant that you could use a pom.xml and embed play into your app without needing to use sbt. Given 2.3.x has shifted to the activator model, is it still possible to use it with maven?

其次,可以完全不使用激活器来使用play 2.3.x吗? (我知道他们有一个可播放的sbt插件,但这似乎也很复杂.)

And secondly, is it possible to use play 2.3.x without activator at all? (I know they have a sbt plugin for play, but that seems very complex as well).

谢谢!

推荐答案

激活器仅用于创建空模板项目,如果您对游戏有所了解,也可以手动执行.在创建空项目之后,您只需要sbt(实际上是激活器的核心部分).

Activator is only needed to create the empty template project, which you could also do by hand if you know a bit about play. After that empty project is created all you need is sbt (which actually is a pretty central part of activator).

在play 2.3中,分发模型从一个大的zip文件更改为常规的ivy/maven依赖项,因此您可以从maven项目中获得所有依赖项.问题在于sbt play设置还有很多其他功能:模板编译,路由DSL编译,热重载,资产管道等,所以我不认为maven实际上是一个选择.

With play 2.3 the distribution model changed from the one big zip-file to regular ivy/maven dependencies, so you could possibly get all dependencies right from a maven project. The problem is that the sbt play setup does so much more: template compilation, routes DSL compilation, hot reloading, asset pipeline stuff, so I don't think maven actually is an option.

这篇关于Play 2.3.x是否可以在没有激活器(和maven)的情况下使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆