updated build for both command line and eclipse m2e