WIP - HSEARCH-1392 - Assorted fixes to the pom files

See https://hibernate.atlassian.net/browse/HSEARCH-1392 for the current state of my work and what I would like to do.

I thought it might be a good idea to create the PR sooner than later so that we can discuss the changes more easily.