我们的发布工程正在规定我们不能使用SBT。我们必须使用ANT。
我们需要一个适当的jar列表来编译PlayFramework应用程序。我们正在使用Play 2.3.4和(我认为!)Scala 2.10 ---这是从activator-1.2.3下载的内容。
关于如何计算出最低限量的罐子的想法?
目前,Controller类和iteratees存在问题......(我想这些是在一些scala jar中)
问题:
答案 0 :(得分:1)
tl; dr activator stage
,然后从target/universal/stage/lib
抓取罐子。
Play Framework提供stage
任务target/universal/stage
:
这会清理并编译您的应用程序,检索所需的内容 依赖项并将它们复制到
bin/<start>
目录。 它还会创建一个<start>
脚本,其中stage
是项目的脚本 名称。该脚本在Unix风格的系统上运行Play服务器 也是Windows的相应bat文件。
在您执行target/universal/stage
任务后,您从[jars-needed-play] $ stage
[info] Packaging /Users/jacek/sandbox/jars-needed-play/target/scala-2.11/jars-needed-play_2.11-1.0-SNAPSHOT-sources.jar ...
[info] Done packaging.
[info] Updating {file:/Users/jacek/sandbox/jars-needed-play/}root...
[info] Wrote /Users/jacek/sandbox/jars-needed-play/target/scala-2.11/jars-needed-play_2.11-1.0-SNAPSHOT.pom
[info] Resolving jline#jline;2.11 ...
[info] Done updating.
[info] Main Scala API documentation to /Users/jacek/sandbox/jars-needed-play/target/scala-2.11/api...
[info] Compiling 5 Scala sources and 1 Java source to /Users/jacek/sandbox/jars-needed-play/target/scala-2.11/classes...
[info] Packaging /Users/jacek/sandbox/jars-needed-play/target/jars-needed-play-1.0-SNAPSHOT-assets.jar ...
[info] Done packaging.
model contains 17 documentable templates
[info] Main Scala API documentation successful.
[info] Packaging /Users/jacek/sandbox/jars-needed-play/target/scala-2.11/jars-needed-play_2.11-1.0-SNAPSHOT-javadoc.jar ...
[info] Done packaging.
[info] Packaging /Users/jacek/sandbox/jars-needed-play/target/scala-2.11/jars-needed-play_2.11-1.0-SNAPSHOT.jar ...
[info] Done packaging.
[success] Total time: 4 s, completed Oct 1, 2014 9:09:29 AM
[jars-needed-play] $ eval "ls target/universal/stage/lib" !
ch.qos.logback.logback-classic-1.1.1.jar
ch.qos.logback.logback-core-1.1.1.jar
...
xerces.xercesImpl-2.11.0.jar
xml-apis.xml-apis-1.4.01.jar
[info] ans: Int = 0
抓住了罐子,你可以离线或者......咳嗽,咳嗽......蚂蚁。
{{1}}