adapted to maven project