refactor java packaging to prepare maven release