简体   繁体   English

为什么用游戏设置一个项目要花很多时间?

[英]Why does setting up a project with play take so much time ?

I am trying to use play framework to make a simple hello world web application. 我正在尝试使用播放框架制作一个简单的Hello World Web应用程序。 After downloading, it I have used activator new helloworld to create a simple project named helloworld and to run it I am using activator run . 下载后,我使用了activator new helloworld创建了一个名为helloworld的简单项目,并使用activator run来运行它。

Now, the activator is taking a lot of time to run. 现在,激活器需要大量时间才能运行。 It is downloading a lot of jar files from a very long time. 很长一段时间以来,它正在下载许多jar文件。
I want to know, why does it download so many jar files for the project ? 我想知道,为什么要为该项目下载那么多的jar文件? Will it download those jar files before running every new project ? 在运行每个新项目之前,它将下载这些jar文件吗?

Activator is the soft wrapper for sbt. 激活器是sbt的软包装。 Sbt is the build tool that play use. Sbt是可以使用的构建工具。

When you create the project activator new - it download (and create) the project "template" files. 创建activator new的项目activator new -它会下载(并创建)项目“模板”文件。

When you run activator run sbt check your configuration and download dependencies. 当您运行activator run sbt时,请检查您的配置并下载依赖项。 It's smart, so it will not download dependencies every run - it will update it only if you change it. 它很聪明,因此不会在每次run时都下载依赖项-仅在更改时才会更新依赖项。

Look at this question and my answer: PlayFramework resolves dependencies every launch 看看这个问题和我的答案: PlayFramework在每次启动时都会解决依赖关系

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM