I have created a module in my play application and the structure of the module is
myApp/app/builder/modules/design
In myApp dependencies.yml i have given
# Application dependencies
require:
- play
- design -> design
repositories:
- My modules:
type: local
artifact: /var/www/html/myApp/app/builder/modules/design
contains:
- design
In myApp routes
GET / Application.index
GET /home Application.index
GET /design module:design.index
The application runs successfully but when i access the design page in design module it throws error
10:13:58,247 ERROR ~ Cannot include routes for module design.index (not found)
What should i do to resolve this error.
When i add the module specification in application.conf
module.design=/var/www/html/myApp/app/builder/modules/design
Then it throws an error
The file {module:design}/app/controllers/Design.java could not be compiled. Error raised is : The declared package "builder.modules.design.app.controllers" does not match the expected package "controllers"