Use the ant build file as a template to build the plug-in. You may wish to disable/customise the manifest and plugin.xml generation files.