Go to the directory <INSTALL>/registry/samples/publish-service.
Type the following command:
asant run