Reorganize maven setup so that no external shell script needs to be called before the lib can be built.