Mellson
Mellson

Reputation: 2948

How to add dependencies in Eclipse which sbt and Play 2.0 can see

I am working on a Scala library in Eclipse (proj1).

This library I would like to test in a Play 2.0 Scala web app. So I have run the eclipse command from the cmd line and imported the project into Eclipse (proj2).

So I have two eclipse projects side by side. I can add the first project (proj1) to the build path of proj2 in Eclipse. This way I can import the library and write the code.

But when Play compiles it can't see library I've added to the build path. If I run the eclipse command again the library is removed from the build path.

Is there any way to reference the project? I would prefer not to build a jar and import that via sbt.

Upvotes: 3

Views: 526

Answers (1)

andyczerwonka
andyczerwonka

Reputation: 4260

I simply add them via sbt and regenerate the eclipse project from the Play console.

Upvotes: 3

Related Questions