3
votes

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.

1
Thanks I will have a look at that - Mellson
What I was trying was to use linked resources. Just found out that it is not supported in sbt yet. I will try Ivan's approach instead. - Mellson

1 Answers

3
votes

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