Alter build config to deploy a jar file.
Fix compile errors.