error compiling play 2.5.4 from command line (activator compile)

775 views
Skip to first unread message

Simin Ghasemi

unread,
Jul 25, 2016, 9:04:46 AM7/25/16
to play-framework

I have downloaded typesafe-activator-1.3.10.zip .

I create my first application with "activator new java testPlay2.5.4".


Then, when I compile it ("activator compile") I get the following log:


E:\workspace\IntelliJ IDEA\testPlay2.5.4>activator compile
ACTIVATOR_HOME
=C:\typesafe-activator-1.3.10
The system cannot find the file BIN_DIRECTORY\..\conf\sbtconfig.txt.
[info] Loading project definition from E:\workspace\IntelliJ IDEA\testPlay2.5.4\project
[info] Updating {file:/E:/workspace/IntelliJ%20IDEA/testPlay2.5.4/project/}testplay2-5-4-build...
[info] Resolving com.typesafe.play#sbt-plugin;2.5.4 ...
[error] Server access Error: Socket is not connected: connect url=https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/sbt-plugin/scala_2.10/sb
t_0
.13/2.5.4/ivys/ivy.xml
[error] Server access Error: Socket is not connected: connect url=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.play/sbt-plugin/scala
_2
.10/sbt_0.13/2.5.4/ivys/ivy.xml
[error] Server access Error: Unexpected end of file from server url=http://repo.typesafe.com/typesafe/releases/com/typesafe/play/sbt-plugin_2.10_0.13/2.5.4/
sbt
-plugin-2.5.4.pom
[error] Server access Error: Unexpected end of file from server url=http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/sbt-plugin/scala_2.10/s
bt_0
.13/2.5.4/ivys/ivy.xml
[warn]  module not found: com.typesafe.play#sbt-plugin;2.5.4
[warn] ==== typesafe-ivy-releases: tried
[warn]   https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn]   https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml
[warn] ==== local: tried
[warn]   C:\Users\s.ghasemi\.ivy2\local\com.typesafe.play\sbt-plugin\scala_2.10\sbt_0.13\2.5.4\ivys\ivy.xml
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/com/typesafe/play/sbt-plugin_2.10_0.13/2.5.4/sbt-plugin-2.5.4.pom
[warn] ==== activator-local: tried
[warn]   C:\typesafe-activator-1.3.10\repository\com.typesafe.play\sbt-plugin\scala_2.10\sbt_0.13\2.5.4\ivys\ivy.xml
[warn] ==== activator-launcher-local: tried
[warn]   C:\typesafe-activator-1.3.10\repository\com.typesafe.play\sbt-plugin\scala_2.10\sbt_0.13\2.5.4\ivys\ivy.xml
[warn] ==== typesafe-releases: tried
[warn]   http://repo.typesafe.com/typesafe/releases/com/typesafe/play/sbt-plugin_2.10_0.13/2.5.4/sbt-plugin-2.5.4.pom
[warn] ==== typesafe-ivy-releasez: tried
[warn]   http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.typesafe.play#sbt-plugin;2.5.4: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]          com.typesafe.play:sbt-plugin:2.5.4 (scalaVersion=2.10, sbtVersion=0.13)
[warn]
[warn]  Note: Unresolved dependencies path:
[warn]          com.typesafe.play:sbt-plugin:2.5.4 (scalaVersion=2.10, sbtVersion=0.13) (E:\workspace\IntelliJ IDEA\testPlay2.5.4\project\plugins.sbt#L2-3)
[warn]            +- default:testplay2-5-4-build:0.1-SNAPSHOT (scalaVersion=2.10, sbtVersion=0.13)
sbt
.ResolveException: unresolved dependency: com.typesafe.play#sbt-plugin;2.5.4: not found
        at sbt
.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:313)
        at sbt
.IvyActions$$anonfun$updateEither$1.apply(IvyActions.scala:191)
        at sbt
.IvyActions$$anonfun$updateEither$1.apply(IvyActions.scala:168)
        at sbt
.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:156)
        at sbt
.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:156)
        at sbt
.IvySbt$$anonfun$withIvy$1.apply(Ivy.scala:133)
        at sbt
.IvySbt.sbt$IvySbt$$action$1(Ivy.scala:57)
        at sbt
.IvySbt$$anon$4.call(Ivy.scala:65)
        at xsbt
.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
        at xsbt
.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
        at xsbt
.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
        at xsbt
.boot.Using$.withResource(Using.scala:10)
        at xsbt
.boot.Using$.apply(Using.scala:9)
        at xsbt
.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
        at xsbt
.boot.Locks$GlobalLock.withLock(Locks.scala:48)
        at xsbt
.boot.Locks$.apply0(Locks.scala:31)
        at xsbt
.boot.Locks$.apply(Locks.scala:28)
        at sbt
.IvySbt.withDefaultLogger(Ivy.scala:65)
        at sbt
.IvySbt.withIvy(Ivy.scala:128)
        at sbt
.IvySbt.withIvy(Ivy.scala:125)
        at sbt
.IvySbt$Module.withModule(Ivy.scala:156)
        at sbt
.IvyActions$.updateEither(IvyActions.scala:168)
        at sbt
.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1439)
        at sbt
.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1435)
        at sbt
.Classpaths$$anonfun$doWork$1$1$$anonfun$90.apply(Defaults.scala:1470)
        at sbt
.Classpaths$$anonfun$doWork$1$1$$anonfun$90.apply(Defaults.scala:1468)
        at sbt
.Tracked$$anonfun$lastOutput$1.apply(Tracked.scala:37)
        at sbt
.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1473)
        at sbt
.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1467)
        at sbt
.Tracked$$anonfun$inputChanged$1.apply(Tracked.scala:60)
        at sbt
.Classpaths$.cachedUpdate(Defaults.scala:1490)
        at sbt
.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1417)
        at sbt
.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1369)
        at scala
.Function1$$anonfun$compose$1.apply(Function1.scala:47)
        at sbt
.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
        at sbt
.std.Transform$$anon$4.work(System.scala:63)
        at sbt
.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
        at sbt
.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
        at sbt
.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
        at sbt
.Execute.work(Execute.scala:237)
        at sbt
.Execute$$anonfun$submit$1.apply(Execute.scala:228)
        at sbt
.Execute$$anonfun$submit$1.apply(Execute.scala:228)
        at sbt
.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
        at sbt
.CompletionService$$anon$2.call(CompletionService.scala:28)
        at java
.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java
.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java
.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java
.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java
.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java
.lang.Thread.run(Thread.java:745)
[error] (*:update) sbt.ResolveException: unresolved dependency: com.typesafe.play#sbt-plugin;2.5.4: not found
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? q

E
:\workspace\IntelliJ IDEA\testPlay2.5.4>


my build.sbt :

name := """testPlay2.5.4"""

version
:= "1.0-SNAPSHOT"

lazy val root
= (project in file(".")).enablePlugins(PlayJava)

scalaVersion := "2.11.7"

libraryDependencies
++= Seq(
  javaJdbc
,
  cache
,
  javaWs
)





my plugin.sbt:

// The Play plugin
addSbtPlugin
("com.typesafe.play" % "sbt-plugin" % "2.5.4")

// Web plugins
addSbtPlugin
("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0")
addSbtPlugin
("com.typesafe.sbt" % "sbt-less" % "1.1.0")
addSbtPlugin
("com.typesafe.sbt" % "sbt-jshint" % "1.0.3")
addSbtPlugin
("com.typesafe.sbt" % "sbt-rjs" % "1.0.7")
addSbtPlugin
("com.typesafe.sbt" % "sbt-digest" % "1.1.0")
addSbtPlugin
("com.typesafe.sbt" % "sbt-mocha" % "1.1.0")
addSbtPlugin
("org.irundaia.sbt" % "sbt-sassify" % "1.4.2")

// Play enhancer - this automatically generates getters/setters for public fields
// and rewrites accessors of these fields to use the getters/setters. Remove this
// plugin if you prefer not to have this feature, or disable on a per project
// basis using disablePlugins(PlayEnhancer) in your build.sbt
addSbtPlugin
("com.typesafe.sbt" % "sbt-play-enhancer" % "1.1.0")

// Play Ebean support, to enable, uncomment this line, and enable in your build.sbt using
// enablePlugins(PlayEbean).
// addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "1.0.0")


I appiritiate any suggestion...


Sivakumar Raja

unread,
Jul 25, 2016, 11:05:50 AM7/25/16
to play-fr...@googlegroups.com
From your logs, it clearly states it didn't have sbt plugin for play 2.5.4 on your environment. Make sure your PC is online, try compile it again, so that it download all relevant items.

Thanks,
Sivakumar

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/9725bd94-e96f-4c8a-a97b-0c3efce8625f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Simin Ghasemi

unread,
Jul 27, 2016, 1:34:14 AM7/27/16
to play-framework
Are you sure you could compile a project with 2.5.4 ? In your project/plugin.sbt, is your sbt-plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.4")? or 2.5.3 ?

In addition, following link does not exist, I tried it in browser (proxy is set) but could not found it.
https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/sbt-plugin/scala_2.10/sb
t_0
.13/2.5.4/ivys/ivy.xml
The requested path was not found.

This is a public problem and other people also could not compile play 2.5.4.


alex s

unread,
Jul 27, 2016, 4:04:49 AM7/27/16
to play-framework
среда, 27 июля 2016 г., 8:34:14 UTC+3 пользователь Simin Ghasemi написал:

In addition, following link does not exist, I tried it in browser (proxy is set) but could not found it.
https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/sbt-plugin/scala_2.10/sb
t_0
.13/2.5.4/ivys/ivy.xml

Simin Ghasemi

unread,
Jul 27, 2016, 10:29:48 AM7/27/16
to play-framework

 Thank you Alex,
 I set proxy in .activator/activatorconfig.txt and ran it again. activator could resolve all dependencies successfully.
Reply all
Reply to author
Forward
0 new messages