convert scanner & protocol lib to maven