Failed to start vital modules -Openmrs platform 2.2-SNAPSHOT

I fixed that here: https://github.com/openmrs/openmrs-module-referencemetadata/commit/9f0a937e2d7975b5edd0a842b4f085db0d20f6d1

Therefore you need to use the latest snapshot version of the referencemetadata module.