writing to the right directory and trying to use maven