Unable to build 2.2-SNAPSHOT repository from scratch

379 views
Skip to first unread message

Leon Mergen

unread,
Sep 9, 2013, 11:48:55 AM9/9/13
to play-fr...@googlegroups.com
Hello,

I'm sorry if this is unrelated or if I'm doing something silly, but I'm having trouble doing a `play run` using a home-built repository. I've built the play framework using the instructions available at http://www.playframework.com/documentation/2.2.0-RC1/BuildingFromSource . My conf/plugins.sbt looks like this:

logLevel := Level.Warn

resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

resolvers += "Local Repository" at "file:///home/lmergen/git/playframework/repository/local"

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2-SNAPSHOT")


When I run 'play run', I get the following error:

java.lang.NoSuchMethodException: play.core.server.NettyServer.mainDevHttpMode(play.core.SBTLink, play.core.SBTDocHandler, int)
        at java.lang.Class.getMethod(Class.java:1652)
        at play.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$1.apply(PlayRun.scala:232)
        at play.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$1.apply(PlayRun.scala:91)
        at scala.Function7$$anonfun$tupled$1.apply(Function7.scala:35)
        at scala.Function7$$anonfun$tupled$1.apply(Function7.scala:34)
        at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)

I'm sceptical of this being an actual error, since I also get this error when checking out and building the 2.2.0-RC1 tag. When I run 'play start', everything seems fine. It almost looks like there is some JAR missing in my classpath or something.

What I am noticing, however, is that SBT seems to fetch my play jars from the typesafe repository and *not* my local repository:

[info]  [SUCCESSFUL ] com.typesafe.play#play_2.10;2.2.0-M2!play_2.10.jar (5525ms)
[info]  [SUCCESSFUL ] com.typesafe.play#play-java_2.10;2.2.0-M2!play-java_2.10.jar (622ms)
[info]  [SUCCESSFUL ] com.typesafe.play#play-jdbc_2.10;2.2.0-M2!play-jdbc_2.10.jar (740ms)

[ .. snip .. ]

[info]  [SUCCESSFUL ] com.typesafe.play#play-datacommons_2.10;2.2.0-M2!play-datacommons_2.10.jar (586ms)

And, as you can see, it downloads the 2.2.0-M2 version and not the 2.2-SNAPSHOT version. Is there a reference to 2.2.0-M2 somewhere that I'm missing?



Will Sargent

unread,
Sep 9, 2013, 4:24:48 PM9/9/13
to play-fr...@googlegroups.com
Can you check that you're running /home/lmergen/git/playframework/play explicitly?

Will.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages