webjars / webjars-play

MIT License
80 stars 34 forks source link

Play 2.2.1 eclipse does not work #27

Closed chanan closed 10 years ago

chanan commented 10 years ago

Created a new java project added: "org.webjars" %% "webjars-play" % "2.2.1",

Running play compile eclipse outputs:

[info] About to create Eclipse project files for your project(s). [error] could not find scala-library.jar

jamesward commented 10 years ago

I haven't seen that before. Does removing the dependency fix it?

chanan commented 10 years ago

That is correct. If I remove it eclipse works, I add it back, eclipse fails.

More details: Windows, JDK7, Play 2.2.1 - blank project. Only adding:

"org.webjars" %% "webjars-play" % "2.2.1"

jamesward commented 10 years ago

There is something funky. I'm not sure where but here is a workaround:

"org.webjars" %% "webjars-play" % "2.2.1" exclude("org.scala-lang", "scala-library")

Let me know if that works.

chanan commented 10 years ago

Yes, that worked! Thanks!

dirkhillbrecht commented 10 years ago

I have the same problem but the suggested solution or workaround do not fit. I have nowhere a dependency to the mentioned library so I cannot apply the exclude rule. I feel a bit lost with this problem.

jamesward commented 10 years ago

@dirkhillbrecht What do you mean you don't have a dependency on the library?

dirkhillbrecht commented 10 years ago

I searched the complete directory tree of the project (Linux, "find ./ -type f | xargs grep") for "webjars-play" but got no hit. The nearest was

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

in $PROJECTROOT/project/plugins.sbt.

In the meantime I helped myself by downloading Play-2.2.2-RC1. One of the first things it did was downloading this library:

[info] downloading http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.10.1/scala-library-2.10.1.jar ... [info] [SUCCESSFUL ] org.scala-lang#scala-library;2.10.1!scala-library.jar (5612ms)

After that, "play eclipse" munched through the project (and the attached projects) for minutes but finally produced a plethora of .classpath and .project files.

Seems I am stuck with that RC1 version. Hopefully it is already candidatish enough... ;-)