Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why activator command is so slow

This is the first time I install activator and start to play with Play 2.

After download the Activator from https://downloads.typesafe.com/typesafe-activator/1.3.5/typesafe-activator-1.3.5-minimal.zip, I followed the guide try to setup my first play app.

However, everything I run an activator command, like activator ui, activator new , or activator run inside the app directory, the command will stuck there for 5-10 minutes, sometimes even longer, before it starts to download dependencies.

$ activator run
Getting org.scala-sbt sbt 0.13.8 ...
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.8/jars/sbt.jar ...

At first, I thought it is because of my network (I'm in China). So I logged into a server on AWS and it is same result.

Is there something I forgot to setup or this is what it is with activator command?

I'm running Scala 2.11.7 with Java 1.8.0_51-b16 on a Mac OS Yosemite 10.10.4.

like image 358
James J. Ye Avatar asked Nov 09 '22 07:11

James J. Ye


1 Answers

add offline:=true in build.sbt , it might help

or some time if any wrong configuration in application.conf , it might be taking good amount of time trying to figure out that ,so your running becomes very slow

like image 91
RWork Avatar answered Nov 15 '22 08:11

RWork