phonegap 构建包括 git 非 npm 插件

phonegap build include git non npm plugin

如何将 git 中的插件包含到 phonegap 构建 zip 文件的构建中? config.xml文件中的插件规范为

<plugin name="com.ourcodeworld.plugins.Filebrowser" spec="~1.0.0" 
src="https://github.com/ourcodeworld/cordova-ourcodeworld-filebrowser.git" />

该项目作为 Cordova 应用程序在 Android 上正常运行。在 PhoneGap Build 中,我收到一条错误消息。 具体错误为:

 Error - The following plugin, plugin version or a dependancy of this plugin is not on npm: 
com.ourcodeworld.plugins.Filebrowser@~1.0.0 

我错过了什么?

需要用git插件填写"spec"URL:

 <plugin   name="com.ourcodeworld.plugins.Filebrowser" 
           spec="https://github.com/ourcodeworld/cordova-ourcodeworld-filebrowser.git" />

不需要"src"。 Visual Studio Cordova 需要 "name"。 PhoneGap Build 将从 git 中提取插件。文档在这里:

http://docs.phonegap.com/phonegap-build/configuring/plugins/#plugin-source