updated run and compile-run scripts to work with maven