use maven to build, to avoid file manipulation before building the jar and to remove the lib directory for dependencies