Fix issue where dependencies were incorrectly listed in the runtime scope in published Maven POM files