Support for deploying artifacts to maven central.
Fix some issues in the build.xml.