When I import the CRUD module using the dependencies.yml like so:
require:
- play
- play -> crud
- play -> secure
I get a Compilation error: CRUD can't be resolved to a type.
But when I do it the depreciated way, by adding:
module.crud=${play.path}/modules/crud
To the application.conf it works, but play! says adding the module via the application.conf is depreciated and I should rather do it via the dependencies.yml
Any Ideas as 开发者_如何学Cto why I can't import the module the recommended way?
You need to run play dependencies
on your app. See Dependency management section of Play documentation.
This is because your eclipse project has a wrong classpath. After enabling a new module for your project, you need to run the 'eclipsify' command again in order to generate a new .classpath file for your eclipse project. If eclipse does not reload it properly, try to remove it from the workspace and re-import it again.
精彩评论