maven deprecation warnings fixed