CSPACE-3546, CSPACE-2903, CSPACE-2421, CSPACE-2170, CSPACE-2000, CSPACE-1894. Reworking lots of repository and hibernate configuration and build process to be less DB specific, and to support injection of passwords from environment variables.
NOTE: this also enforces ownership of each of the three databases/datasources by three respective users (jboss, nuxeo, and cspace), with associated passwords. You MUST set the environment variables: DB_PASSWORD_JBOSS, DB_PASSWORD_NUXEO, DB_PASSWORD_CSPACE in addition to DB_PASSWORD. The current default values are (still) embedded in
src/main/resources/db/mysql/init_db.sql, but this will get changed to use the environment variables as well.
Also added the jboss-ds.xml datasource configuration to our source tree to simplify managing the default jboss datasource.