Import CRUD module into Play! 1.2.3

When I import a CRUD module using dependencies.yml as follows:

require: - play - play -> crud - play -> secure 

I get a compilation error: CRUD cannot be resolved for a type.

But when I do it in a depreciated way, adding:

 module.crud=${play.path}/modules/crud 

In application.conf it works, but it plays! says adding a module through application.conf is depreciating and I have to do it through dependencies.yml

Any ideas as to why I cannot import the module in the recommended way?

+6
source share
2 answers

You need to run play dependencies in your application. See the Dependency Management section of the playback documentation .

+9
source

This is because your eclipse project has the wrong class path. After allowing you to create a new module for your project, you need to run 'eclipsify' again to create a new .classpath file for your eclipse project. If eclipse does not restart it correctly, try removing it from the workspace and importing it again.

+3
source

Source: https://habr.com/ru/post/896739/


All Articles