add required deps and eclipse m2e fix
load resource instead of use file handle