refactoring and add own m2 repo info.