简体   繁体   中英

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.

我只是通过 sbt 添加它们并从 Play 控制台重新生成 eclipse 项目。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM