improved the maven coordinate resolution for outside of osgi; reused more code between osgi + non osgi code