add maven dotfiles
reloacte files
extract common functionality