简体   繁体   中英

Play framework 2.0 unresolved dependencies

I have created a scala project with play framework 2.0. The project compiles and runs fine both with sbt and play commands.

However, the problems started when I tried to add another play project as a dependency to my project, because I needed to reuse some of its classes. sbt compile succeeds, but play compile/run does not. They give me the following error:

sbt.ResolveException: unresolved dependency: name_of_old_project_play_dependency: not found

I am also not able to run the project with sbt run ; whenever I do a request to the play framework, I get a null pointer exception.

Is that because both the projects are play projects and maybe there is a conflict somewhere? Any insight would be appreciated!

Please be sure to view the play version since sbt (the build system play uses) may have different versions.

Please verify the build.properties and plugins.sbt play version.

A technique I use to solve unresolved dependencies is to check the links that sbt tries to access. I manually try to fetch the file by visiting the failed sites. I usually discover I have a version mishap.

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