Formation project based on the play sample application
CREATE DATABASE computerdb_development CHARACTER SET utf8;
CREATE USER computerdb@localhost identified by 'computerdb';
GRANT ALL ON computerdb_development.* TO computerdb@localhost;
FLUSH PRIVILEGES;
Then inject the scripts.
You need to do these two things:
- Set a server inside Maven's
settings.xml
with the nameTomcat7Server
- The user specified need to have the role
manager-script
in Tomcat7'stomcat-users.xml
Then you can either use mvn install tomcat7:deploy
or mvn install tomcat7:redeploy
.