convert the build from ant/ivy to maven

This changes the build from ant/ivy to maven. I believe it replicates most (if not all) of the build functionalities in maven. It should not result in a materially different build result.