Refactor maven and java roles and update README.