Add build task for publishing maven artifact.